[Intel-wired-lan] [net-next PATCH 13/25] ice: fix incorrect dev_dbg print mistaking 'i' for vf->vf_id

Jankowski, Konrad0 konrad0.jankowski at intel.com
Wed Mar 2 20:00:05 UTC 2022



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jacob Keller
> Sent: Wednesday, February 23, 2022 1:27 AM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Subject: [Intel-wired-lan] [net-next PATCH 13/25] 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: 0891c89674e8 ("ice: warn about potentially malicious VFs")
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_sriov.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice_sriov.c
> b/drivers/net/ethernet/intel/ice/ice_sriov.c
> index 2f74fcf51c2c..91d106528b66 100644
> --- a/drivers/net/ethernet/intel/ice/ice_sriov.c
> +++ b/drivers/net/ethernet/intel/ice/ice_sriov.c
> @@ -1381,7 +1381,8 @@ bool ice_reset_vf(struct ice_vf *vf, bool is_vflr)

Tested-by: Konrad Jankowski <konrad0.jankowski at intel.com>


More information about the Intel-wired-lan mailing list