]> 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)
commit47f9d9eef4114f04d4c4c9cdedb7a7c75685a3e8
tree87aa76126ec1b9cf303b60b5cca07439c54a6d57
parenta4e6b63000a73b2a6fec68cf21367dea2d289b0b
ice: Fix VSI rebuild WARN_ON check for VF

In commit 551e42db7d0b ("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: 551e42db7d0b ("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