]> www.infradead.org Git - users/hch/xfs.git/commit
octeontx2-af: Fix incorrect value output on error path in rvu_check_rsrc_availability()
authorAleksandr Mishin <amishin@t-argos.ru>
Fri, 5 Jul 2024 09:53:17 +0000 (12:53 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Jul 2024 10:48:32 +0000 (12:48 +0200)
commit442e26af9aa8115c96541026cbfeaaa76c85d178
treedf4ed10dbd7483e6ba6ff075bbf868a67c07956d
parent0d1b7d6c927431126ece585246e23aa877243360
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: 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>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c