From: Eric Dumazet Date: Thu, 26 Jun 2014 07:44:02 +0000 (-0700) Subject: bnx2x: fix possible panic under memory stress X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07b0f00964def8af9321cfd6c4a7e84f6362f728;p=pandora-kernel.git 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: [] virt_to_head_page+0x36/0x44 [bnx2x] Reported-by: Michel Lespinasse Signed-off-by: Eric Dumazet Cc: Ariel Elior Fixes: d46d132cc021 ("bnx2x: use netdev_alloc_frag()") Signed-off-by: David S. Miller --- Reading git-diff-tree failed