i40e: Remove MSIx only if created
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 10 Mar 2016 22:59:43 +0000 (14:59 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Apr 2016 09:55:57 +0000 (02:55 -0700)
commit692783980ad6163e8586baa36c066cd0d22fc7ce
treea5acea1338ac102752169a57be5f77abe7796f92
parent618290262e960469758d4ab67457fcb2ea356d51
i40e: Remove MSIx only if created

When cleaning up the interrupt handling, clean up the IRQs only if
we actually got them set up.  There are a couple of error recovery
paths that were violating this and causing the kernel a bit of
indigestion.

Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Reviewed-by: Williams, Mitch A <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c