diff options
author | Eric Dumazet <edumazet@google.com> | 2014-06-26 00:44:02 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-28 08:06:00 -0700 |
commit | 406f49c9d0f3469aae6332a2e3ad665a25bb1ae7 (patch) | |
tree | ccb7df01c747c5f05fbf751a263b4f715da808c0 /net/ipv4 | |
parent | 45917cc8c0dd959e57cc5b754295fa527bcb7baa (diff) | |
download | linux-stable-406f49c9d0f3469aae6332a2e3ad665a25bb1ae7.tar.gz linux-stable-406f49c9d0f3469aae6332a2e3ad665a25bb1ae7.tar.bz2 linux-stable-406f49c9d0f3469aae6332a2e3ad665a25bb1ae7.zip |
bnx2x: fix possible panic under memory stress
[ Upstream commit 07b0f00964def8af9321cfd6c4a7e84f6362f728 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions