Skip to content

Commit 6650c8e

Browse files
d-tatianinanguy11
authored andcommitted
iavf/iavf_main: actually log ->src mask when talking about it
This fixes a copy-paste issue where dev_err would log the dst mask even though it is clearly talking about src. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. Fixes: 0075fa0 ("i40evf: Add support to apply cloud filters") Signed-off-by: Daniil Tatianin <[email protected]> Reviewed-by: Michal Swiatkowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 5e91c72 commit 6650c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/iavf/iavf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter,
38503850
field_flags |= IAVF_CLOUD_FIELD_IIP;
38513851
} else {
38523852
dev_err(&adapter->pdev->dev, "Bad ip src mask 0x%08x\n",
3853-
be32_to_cpu(match.mask->dst));
3853+
be32_to_cpu(match.mask->src));
38543854
return -EINVAL;
38553855
}
38563856
}

0 commit comments

Comments
 (0)