Eric Dumazet 07b0f00964 bnx2x: fix possible panic under memory stress
While it is legal to kfree(NULL), it is not wise to use :
put_page(virt_to_head_page(NULL))

 BUG: unable to handle kernel paging request at ffffeba400000000
 IP: [<ffffffffc01f5928>] virt_to_head_page+0x36/0x44 [bnx2x]

Reported-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ariel Elior <ariel.elior@qlogic.com>
Fixes: d46d132cc021 ("bnx2x: use netdev_alloc_frag()")
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-07-01 12:20:20 -07:00
..
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 18:02:24 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-06-11 15:44:29 -07:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-22 15:50:13 -04:00
2014-04-21 14:58:48 -04:00
2014-05-14 15:11:22 -04:00