cxgb4: fix a NULL dereference
authorGanesh Goudar <ganeshgr@chelsio.com>
Fri, 16 Jun 2017 10:06:09 +0000 (15:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jun 2017 04:02:25 +0000 (00:02 -0400)
commitd427caee5a3f04938f47bec6fdec97a52668ee53
tree9bdb9365ac167b2284c231cffe8186fffdfce835
parentc4ee5d8103ed78502170e9f0c22dc31cb335c412
cxgb4: fix a NULL dereference

Avoid NULL dereference in setup_sge_queues() when the adapter is
in non offload mode.

Fixes: 0fbc81b3ad51 ('chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's')
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c