summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ixgbevf/defines.h
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2014-12-04 06:03:38 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-12-05 20:13:08 +0300
commit0fb6a55cc31ff216ef86332404ad3e425cb669eb (patch)
treef3e0e75d706cca8f6caf9eee77f8a33c60dd625c /drivers/net/ethernet/intel/ixgbevf/defines.h
parent9be4a9bb34746b8b87b6361462484ca42ac7089e (diff)
downloadlinux-0fb6a55cc31ff216ef86332404ad3e425cb669eb.tar.xz
ixgbe: fix crash on rmmod after probe fail
The driver has logic to free up used data in case any of the checks in ixgbe_probe() fail, however there is a similar set of cleanups that can occur on driver unload in ixgbe_remove() which can cause the rmmod command to crash. This patch aims to fix the logic by moving pci_set_drvdata() after all error checks and then adds a check in ixgbe_remove() to skip it altogether if adapter comes up empty. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/defines.h')
0 files changed, 0 insertions, 0 deletions