bnx2x: Prevent null pointer dereference on SKB release
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Mon, 10 Aug 2015 09:49:35 +0000 (12:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 21:31:58 +0000 (14:31 -0700)
commite1615903eb6b5e599396d4b3d8e3e96f6d432a6e
treeffa80a87ce4074718727cfb410c81fc16eefe6a2
parent21a447637d28eb824a1163c1fc5f41ffa4b28e33
bnx2x: Prevent null pointer dereference on SKB release

On error flows its possible to free an SKB even if it was not allocated.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c