]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06ef20588b64729147e24e981327ab0a59774187
tree6089a510198e507a9b378683a9715e6c94e05fa9
parentb2dfa26c50f9722c5c840c48aa7382f8b4add6e0
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