octeontx2-af: Fix incorrect value output on error path in rvu_check_rsrc_availability()
[ Upstream commit 442e26af9aa8115c96541026cbfeaaa76c85d178 ] 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: 746ea74241fa ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7d98eb18be
commit
da14c3300e
1 changed files with 1 additions and 1 deletions
|
@ -1357,7 +1357,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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue