Shannon Nelson 04b03013a5 i40e: fix error handling when alloc of vsi array fails
Swap a couple lines around in the error handling if the kzalloc() for
the pf->vsi array fails.  This was causing a kernel BUG because the
call to i40e_clear_interrupt_scheme() was assuming the pf->vsi[] array
existed.  In this fix it is possible that i40e_reset_interrupt_capability()
will get called twice, but this is a safe action.

Change-Id: I939163ccaa89baac7511556d36bc873864c35ae1
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-01-04 23:12:55 -08:00
..
2013-12-11 00:19:17 -05:00
2013-12-18 15:00:52 -05:00
2014-01-03 20:49:20 -05:00
2014-01-02 03:30:35 -05:00
2013-08-30 17:43:38 -04:00
2013-08-30 17:43:35 -04:00
2013-11-07 02:14:32 -05:00
2013-08-11 21:38:12 -07:00