]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix incorrect dev_dbg print mistaking 'i' for vf->vf_id
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 23 Feb 2022 00:27:00 +0000 (16:27 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 15 Mar 2022 20:22:19 +0000 (13:22 -0700)
commitb8e62200e74ed862fa30aa3f3f45a54d17cbabfd
tree03c8c5020cafada79614d654ac7993631944ca58
parent29802bb54c6e1acc578890cd32f74e1fe8de24c8
ice: fix incorrect dev_dbg print mistaking 'i' for vf->vf_id

If we fail to clear the malicious VF indication after a VF reset, the
dev_dbg message which is printed uses the local variable 'i' when it
meant to use vf->vf_id. Fix this.

Fixes: 9baa74f31d6d ("ice: warn about potentially malicious VFs")
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_sriov.c