summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_adminq.h
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@intel.com>2013-11-28 06:39:34 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-01-04 23:12:55 -0800
commit04b03013a52517c46668d8094872c2b0c87e1b59 (patch)
tree63a0203c45f33742617e3b630d1250d4df64bed3 /drivers/net/ethernet/intel/i40e/i40e_adminq.h
parent2f0191238d1d82c3cf0de350ac84e6e8d14aaf08 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_adminq.h')
0 files changed, 0 insertions, 0 deletions