linux/drivers/net/ethernet/emulex/benet
Kalesh AP e1ad8e33d2 be2net: Fix invocation of be_close() after be_clear()
In the EEH error recovery path, when a permanent failure occurs,
we clean up adapter structure (i.e. destroy queues etc) by calling
be_clear() and return PCI_ERS_RESULT_DISCONNECT.
After this the stack tries to remove device from bus and calls
be_remove() which invokes netdev_unregister()->be_close().
be_close() operating on destroyed queues results in a
NULL dereference.

This patch fixes this problem by introducing a flag to keep track
of the setup state.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-04-14 13:41:37 -04:00
..
Kconfig be2net: fix build dependency on VxLAN 2014-04-01 16:25:51 -04:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00
be.h be2net: Fix invocation of be_close() after be_clear() 2014-04-14 13:41:37 -04:00
be_cmds.c be2net: add FW cmds needed for VxLAN offloads 2014-03-28 14:24:54 -04:00
be_cmds.h be2net: add FW cmds needed for VxLAN offloads 2014-03-28 14:24:54 -04:00
be_ethtool.c net: Replace u64_stats_fetch_begin_bh to u64_stats_fetch_begin_irq 2014-03-14 22:41:36 -04:00
be_hw.h be2net: csum, tso and rss steering offload support for VxLAN 2014-03-28 14:24:54 -04:00
be_main.c be2net: Fix invocation of be_close() after be_clear() 2014-04-14 13:41:37 -04:00
be_roce.c Main batch of InfiniBand/RDMA changes for 3.15: 2014-04-03 16:57:19 -07:00
be_roce.h Main batch of InfiniBand/RDMA changes for 3.15: 2014-04-03 16:57:19 -07:00