]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Check for q_vector when stopping rings
authorTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 26 Oct 2018 17:41:01 +0000 (10:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 13 Nov 2018 17:09:25 +0000 (09:09 -0800)
commitcf822d2c4ac3bc55f68116d9b10d91e7523ffbeb
tree0d95d6084813e478839fcf3092db54f0a45d0ce8
parenta29cd81286fe9a170837fcd20aa5dd6d4e29eaaf
ice: Check for q_vector when stopping rings

There is a gap in time between a VF reset, which sets the q_vector to
NULL, and the VF requesting mapping of the q_vectors. If
ice_vsi_stop_tx_rings() is called during this time, a NULL pointer
dereference is encountered. Add a check in ice_vsi_stop_tx_rings()
to ensure the q_vector is set to avoid this situation from occurring.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c