i40evf: Fixed guest OS panic when removing vf driver
authorSerey Kong <serey.kong@intel.com>
Fri, 1 Aug 2014 20:27:15 +0000 (13:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Aug 2014 02:41:15 +0000 (19:41 -0700)
commit8bb1a540450c3dbd075491ea43772ac8a7ddec46
tree6f6da2803db73ee34b08ccab20ad3d08dcb4693c
parent6ba36a246ef58100ff3f31b0738e317cfab1f240
i40evf: Fixed guest OS panic when removing vf driver

Removing VF driver during device still in reset caused guest OS panic.

in the i40evf_remove(), we're trying to clean mac_filter_list which has
not been initialized since the device is still stuck at the reset.
The change is to initialize the filter_list before setting any task.

Change-ID: I8b59df7384416c7e6f2d264b598f447e1c2c92b0
Signed-off-by: Serey Kong <serey.kong@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40evf/i40evf_main.c