net/cxgbe: fix possible null pointer dereference
authorHenry Cai <caihe@huawei.com>
Tue, 28 Mar 2017 07:32:20 +0000 (15:32 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
commit4a8f7cdd2281c7d904eae5b5ee92e4214e945e51
treefe3d83ed14ce384df416078d50421896e716a90d
parent89665ec20c6abc5e9730b33792e96f65241d7fed
net/cxgbe: fix possible null pointer dereference

Check return value of malloc.

Fixes: 3bd122eef2cc ("cxgbe/base: add hardware API for Chelsio T5 series adapters")
Cc: stable@dpdk.org
Signed-off-by: Henry Cai <caihe@huawei.com>
Acked-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/base/t4_hw.c