Skip to content

Commit 442e26a

Browse files
Aleksandr MishinPaolo Abeni
authored andcommitted
octeontx2-af: Fix incorrect value output on error path in rvu_check_rsrc_availability()
In rvu_check_rsrc_availability() in case of invalid SSOW req, an incorrect data is printed to error log. 'req->sso' value is printed instead of 'req->ssow'. Looks like "copy-paste" mistake. Fix this mistake by replacing 'req->sso' with 'req->ssow'. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 746ea74 ("octeontx2-af: Add RVU block LF provisioning support") Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240705095317.12640-1-amishin@t-argos.ru Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 0d1b7d6 commit 442e26a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/marvell/octeontx2/af

drivers/net/ethernet/marvell/octeontx2/af/rvu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ static int rvu_check_rsrc_availability(struct rvu *rvu,
16431643
if (req->ssow > block->lf.max) {
16441644
dev_err(&rvu->pdev->dev,
16451645
"Func 0x%x: Invalid SSOW req, %d > max %d\n",
1646-
pcifunc, req->sso, block->lf.max);
1646+
pcifunc, req->ssow, block->lf.max);
16471647
return -EINVAL;
16481648
}
16491649
mappedlfs = rvu_get_rsrc_mapcount(pfvf, block->addr);

0 commit comments

Comments
 (0)