]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix bnx2x_panic_dump for VFs
authorYuval Mintz <yuvalmin@broadcom.com>
Wed, 12 Feb 2014 16:19:55 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 00:15:42 +0000 (19:15 -0500)
commitb00727f7dc19be408b3dbc5504bc0324893781d6
tree5eae2e72538d1ad1413b564bc64d3d3557495a32
parent317c9f4f39ef56bd3ad66a07450a7ce1a1c41610
bnx2x: Fix bnx2x_panic_dump for VFs

bnx2x_panic_dump() prints all kind of driver information, including slowpath
information. Since VFs don't initialize slowpath information, a VF reaching
this flow will likely cause a panic in the system as it will access NULL
pointers.

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