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
..
2014-10-24 00:41:31 -04:00
2014-10-05 21:39:40 -04:00
2014-11-11 18:12:32 -05:00
2014-11-13 15:03:53 -05:00
2014-11-16 15:59:13 -05:00
2014-11-12 13:51:23 -05:00
2014-08-02 16:40:52 -07:00
2014-12-02 20:01:24 -08:00