Commit 442e26af authored by Aleksandr Mishin's avatar Aleksandr Mishin Committed by Paolo Abeni

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: 746ea742 ("octeontx2-af: Add RVU block LF provisioning support")
Signed-off-by: default avatarAleksandr Mishin <amishin@t-argos.ru>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240705095317.12640-1-amishin@t-argos.ruSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 0d1b7d6c
...@@ -1643,7 +1643,7 @@ static int rvu_check_rsrc_availability(struct rvu *rvu, ...@@ -1643,7 +1643,7 @@ static int rvu_check_rsrc_availability(struct rvu *rvu,
if (req->ssow > block->lf.max) { if (req->ssow > block->lf.max) {
dev_err(&rvu->pdev->dev, dev_err(&rvu->pdev->dev,
"Func 0x%x: Invalid SSOW req, %d > max %d\n", "Func 0x%x: Invalid SSOW req, %d > max %d\n",
pcifunc, req->sso, block->lf.max); pcifunc, req->ssow, block->lf.max);
return -EINVAL; return -EINVAL;
} }
mappedlfs = rvu_get_rsrc_mapcount(pfvf, block->addr); mappedlfs = rvu_get_rsrc_mapcount(pfvf, block->addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment