linux_dsm_epyc7002/drivers/net/ethernet/intel/ixgbe
Emil Tantilov 0fb6a55cc3 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>
2014-12-05 09:13:08 -08:00
..
ixgbe_82598.c ixgbe: Make return values more direct 2014-07-25 19:58:36 -07:00
ixgbe_82599.c ixgbe: Make return values more direct 2014-07-25 19:58:36 -07:00
ixgbe_common.c ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe_common.h ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe_dcb_82598.c ixgbe: convert low_water into an array 2014-04-22 23:07:11 -07:00
ixgbe_dcb_82598.h ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_dcb_82599.c ixgbe: convert low_water into an array 2014-04-22 23:07:11 -07:00
ixgbe_dcb_82599.h ixgbe: clean up checkpatch warnings about CODE_INDENT and LEADING_SPACE 2014-05-23 05:24:04 -07:00
ixgbe_dcb_nl.c ixgbe: Add new support for X550 MAC's 2014-11-11 06:18:56 -08:00
ixgbe_dcb.c ixgbe: Add new support for X550 MAC's 2014-11-11 06:18:56 -08:00
ixgbe_dcb.h IXGBE: Set the SW prio_tc values at initialization to the HW setting. 2013-05-21 03:14:21 -07:00
ixgbe_debugfs.c ixgbe: don't check NULL for debugfs_remove_recursive 2014-05-23 05:28:24 -07:00
ixgbe_ethtool.c ixgbe: add support for X550 extended RSS support 2014-12-05 09:13:06 -08:00
ixgbe_fcoe.c ixgbe: Make return values more direct 2014-07-25 19:58:36 -07:00
ixgbe_fcoe.h ixgbe: convert low_water into an array 2014-04-22 23:07:11 -07:00
ixgbe_lib.c ixgbe: Add new support for X550 MAC's 2014-11-11 06:18:56 -08:00
ixgbe_main.c ixgbe: fix crash on rmmod after probe fail 2014-12-05 09:13:08 -08:00
ixgbe_mbx.c ixgbe: Add new support for X550 MAC's 2014-11-11 06:18:56 -08:00
ixgbe_mbx.h ixgbe: clean up checkpatch warnings about CODE_INDENT and LEADING_SPACE 2014-05-23 05:24:04 -07:00
ixgbe_phy.c ixgbe: add methods for combined read and write operations 2014-12-05 09:13:07 -08:00
ixgbe_phy.h ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe_ptp.c ixgbe: change PTP NSECS_PER_SEC to IXGBE_PTP_PPS_HALF_SECOND 2014-07-01 02:48:39 -07:00
ixgbe_sriov.c ixgbe: add support for X550 extended RSS support 2014-12-05 09:13:06 -08:00
ixgbe_sriov.h net-next:v4: Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool. 2014-05-23 15:04:02 -04:00
ixgbe_sysfs.c ixgbe: add Linux NICS mailing list to contact info 2014-03-12 19:05:30 -07:00
ixgbe_type.h ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe_x540.c ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe_x540.h ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe_x550.c ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe.h ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
Makefile ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00