Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Cc: Ariel Elior <[email protected]> Fixes: d46d132 ("bnx2x: use netdev_alloc_frag()") Signed-off-by: David S. Miller <[email protected]>
- Loading branch information