net/bnx2x: fix segfaults due to stale interrupt status
authorShahed Shaikh <shshaikh@marvell.com>
Thu, 21 Feb 2019 19:24:44 +0000 (11:24 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Mar 2019 17:17:35 +0000 (18:17 +0100)
commit797ed9916ac73efc8f3d0b1a9a354d50948566c9
tree4e22a3c48ed87b19eb2f50f764bf732aae71f8dd
parentdbeba4cf18a5e1d9f7aaa284457bf15c351eb965
net/bnx2x: fix segfaults due to stale interrupt status

Previous ungraceful exit may leave behind un-acked stale
interrupts for slowpath and fastpath.

Interrupt status polling function is started before FLR is
initiated, so we don't have a real way to protect this polling
function invoking an interrupt handler caused due to stale
interrupt status from previous ungraceful exit.

So, check uninitialized status block variables in interrupt
handling path which may lead to segfault.

Fixes: 540a211084a7 ("bnx2x: driver core")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
drivers/net/bnx2x/bnx2x.c