]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix VSI rebuild WARN_ON check for VF
authorBenjamin Mikailenko <benjamin.mikailenko@intel.com>
Fri, 15 Jul 2022 22:27:07 +0000 (18:27 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 11 Aug 2022 15:32:08 +0000 (08:32 -0700)
commite7370ce2ba789fc07cadb33c4bcbfc595a008695
tree87aa76126ec1b9cf303b60b5cca07439c54a6d57
parente39314883cf881f45af4cd55075ac4f36446d8fe
ice: Fix VSI rebuild WARN_ON check for VF

In commit 332317173833 ("ice: store VF pointer instead of VF ID")
WARN_ON checks were added to validate the vsi->vf pointer and
catch programming errors. However, one check to vsi->vf was missed.
This caused a call trace when resetting VFs.

Fix ice_vsi_rebuild by encompassing VF pointer in WARN_ON check.

Fixes: 332317173833 ("ice: store VF pointer instead of VF ID")
Signed-off-by: Benjamin Mikailenko <benjamin.mikailenko@intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c