]> 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)
commit41347fd20c5e71a0e96a461238ab8c30a09df118
tree6089a510198e507a9b378683a9715e6c94e05fa9
parent6053bc89bbbf98538dc97beb410bdb7b6a85a9de
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