]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ixgbevf: Handle previously-freed msix_entries
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 28 Oct 2016 17:46:39 +0000 (10:46 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 5 Nov 2016 00:38:10 +0000 (17:38 -0700)
commiteeffceee421b17a1d484679d738f278fbaa01384
tree1114365172d715e0f9e6b1233992d4b55c629812
parent9f3c7504fa005e2aab5ba9e1f2d8b4f4fcc6c077
ixgbevf: Handle previously-freed msix_entries

The msix_entries memory can be freed by a previous suspend or
remove, so don't crash on close when it isn't there. Also only
clear the interrupts when the interface is up, because there
aren't any when it is not up.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c