cxgb4: correctly handling failed allocation
authorInsu Yun <wuninsu@gmail.com>
Tue, 29 Dec 2015 22:20:11 +0000 (17:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2016 22:18:42 +0000 (17:18 -0500)
commit3934aa4c1f7f4ccdff25f530b0e37d776ac453e2
tree6089a510198e507a9b378683a9715e6c94e05fa9
parentb77357b69225a8e68d222451911feab50f2c6652
cxgb4: correctly handling failed allocation

Since t4_alloc_mem can be failed in memory pressure,
if not properly handled, NULL dereference could be happened.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c