linux/drivers/net/ethernet/intel/igb
Jan Beulich be06998f96 igb: fix NULL derefs due to skipped SR-IOV enabling
The combined effect of commits 6423fc3416 ("igb: do not re-init SR-IOV
during probe") and ceee3450b3 ("igb: make sure SR-IOV init uses the
right number of queues") causes VFs no longer getting set up, leading
to NULL pointer dereferences due to the adapter's ->vf_data being NULL
while ->vfs_allocated_count is non-zero. The first commit not only
neglected the side effect of igb_sriov_reinit() that the second commit
tried to account for, but also that of setting IGB_FLAG_HAS_MSIX,
without which igb_enable_sriov() is effectively a no-op. Calling
igb_{,re}set_interrupt_capability() as done here seems to address this,
but I'm not sure whether this is better than sinply reverting the other
two commits.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-12-12 23:19:37 -08:00
..
e1000_82575.c igb: use the correct i210 register for EEMNGCTL 2015-12-12 23:10:05 -08:00
e1000_82575.h igb: add flags to set eee advertisement mode 2014-09-06 05:00:39 -07:00
e1000_defines.h igb: add 88E1543 initialization code 2015-12-12 23:09:43 -08:00
e1000_hw.h igb: remove blocking phy read from inside spinlock 2014-10-02 02:30:39 -07:00
e1000_i210.c igb: use the correct i210 register for EEMNGCTL 2015-12-12 23:10:05 -08:00
e1000_i210.h igb: use the correct i210 register for EEMNGCTL 2015-12-12 23:10:05 -08:00
e1000_mac.c igb: Cleanups to fix msleep warnings 2014-04-24 17:41:15 -07:00
e1000_mac.h igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
e1000_mbx.c igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
e1000_mbx.h igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
e1000_nvm.c igb/ixgbe: remove return statements for void functions 2014-05-23 05:28:41 -07:00
e1000_nvm.h igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
e1000_phy.c igb: add 88E1543 initialization code 2015-12-12 23:09:43 -08:00
e1000_phy.h igb: add 88E1543 initialization code 2015-12-12 23:09:43 -08:00
e1000_regs.h igb: use the correct i210 register for EEMNGCTL 2015-12-12 23:10:05 -08:00
igb_ethtool.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
igb_hwmon.c igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
igb_main.c igb: fix NULL derefs due to skipped SR-IOV enabling 2015-12-12 23:19:37 -08:00
igb_ptp.c net: igb: avoid using timespec 2015-10-05 03:16:42 -07:00
igb.h igb: don't unmap NULL hw_addr 2015-12-12 23:09:54 -08:00
Makefile