i40evf: fix panic on PF driver fail
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 1 Apr 2014 07:11:50 +0000 (07:11 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 28 Apr 2014 12:00:46 +0000 (05:00 -0700)
commit169f40760ec5e96b9c2e8718ae8f407f5c1e3fc6
tree6d39833a19df48255fcb8c5115303cc6bb21103a
parent014269ff376f552363ecdab78d3d947fbe2237d9
i40evf: fix panic on PF driver fail

Fix a panic that would occur in the VF if the PF driver failed or was
removed from the host kernel. In this case, the VF driver calls
i40evf_close(), but this function does nothing because the driver is in
the resetting state. Because of this, the driver doesn't free its irqs
and causes a kernel panic when it tries to disable MSI-X.

Change-ID: If95644a89e554b4d7be0dca1b6add26f63047129
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c