linux_dsm_epyc7002/drivers/net/ethernet/intel
Christoph Paasch cb06d10232 igb: Fix Null-pointer dereference in igb_reset_q_vector
When igb_set_interrupt_capability() calls
igb_reset_interrupt_capability() (e.g., because CONFIG_PCI_MSI is unset),
num_q_vectors has been set but no vector has yet been allocated.

igb_reset_interrupt_capability() will then call igb_reset_q_vector,
which assumes that the vector is allocated. As this is not the case, we
are accessing a NULL-pointer.

This patch fixes it by checking that q_vector is indeed different from
NULL.

Fixes: 02ef6e1d0b (igb: Fix queue allocation method to accommodate changing during runtime)
Cc: Carolyn Wyborny <carolyn.wyborny@intel.com>
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-03-21 03:48:34 -07:00
..
e1000 drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
e1000e e1000e: Fix Explicitly set Transmit Control Register 2014-03-19 17:17:23 -07:00
i40e i40e: Fix a message string 2014-03-21 01:22:21 -07:00
i40evf i40evf: clean up init error messages 2014-03-21 01:39:08 -07:00
igb igb: Fix Null-pointer dereference in igb_reset_q_vector 2014-03-21 03:48:34 -07:00
igbvf igbvf: Convert uses of __constant_<foo> to <foo> 2014-03-19 22:25:38 -07:00
ixgb ixgb: Call dev_kfree_skby_any instead of dev_kfree_skb. 2014-03-12 16:22:13 -04:00
ixgbe ixgbe: Break recursion in case of removal 2014-03-21 01:46:03 -07:00
ixgbevf ixgbevf: Additional adapter removal checks 2014-03-21 02:38:35 -07:00
e100.c e100: Convert uses of __constant_<foo> to <foo> 2014-03-19 21:46:36 -07:00
Kconfig i40e: add DCB option to Kconfig 2014-01-17 19:13:04 -08:00
Makefile i40evf: add driver to kernel build system 2013-12-31 16:27:49 -08:00