OSDN Git Service

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)
commit0155a27cda683641d29e04e0fbea44afbd302fff
tree5eae2e72538d1ad1413b564bc64d3d3557495a32
parent3a3534ecf2584d6aa558cb8e71baab929851afcc
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