i40e: catch unset q_vector
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 28 Nov 2013 06:39:36 +0000 (06:39 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 5 Jan 2014 07:54:42 +0000 (23:54 -0800)
commit78681b1f875a9c20f9774af16fb927064f75b461
treecce02b2e579278de14b77ceffb8afc4c578f1f4b
parent90bb776ae58ff989010d15bef03b24c14c4d1e67
i40e: catch unset q_vector

Don't try to free a q_vector that hasn't been set up as it can
panic the kernel.

Change-Id: I0650cc6c441d0779788c522c790293c276d14fbc
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>
drivers/net/ethernet/intel/i40e/i40e_main.c