From: Emil Tantilov Date: Thu, 4 Dec 2014 03:03:38 +0000 (+0000) Subject: ixgbe: fix crash on rmmod after probe fail X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~100^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fb6a55cc31ff216ef86332404ad3e425cb669eb;p=pandora-kernel.git 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 Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed