diff options
author | Tony Nguyen <anthony.l.nguyen@intel.com> | 2018-10-26 10:41:01 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-11-13 09:09:25 -0800 |
commit | b354e98f49ce84b969e2c0e2bb44d026ea3c4900 (patch) | |
tree | 0d95d6084813e478839fcf3092db54f0a45d0ce8 /drivers/net/ethernet/intel/ice/ice_sched.h | |
parent | 807bc98d31097bfe22fbf8236413db5490932456 (diff) | |
download | linux-b354e98f49ce84b969e2c0e2bb44d026ea3c4900.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_sched.h')
0 files changed, 0 insertions, 0 deletions