]> git.ipfire.org Git - thirdparty/linux.git/commit
octeontx2-af: Fix error code in rvu_mbox_init()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 25 Jun 2025 15:23:05 +0000 (10:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jun 2025 09:34:20 +0000 (10:34 +0100)
commit20a0c20f82acf46d5731a11743e7c7ac4de25db8
treebed0169c3a17b57f7b0a8d40ce53132cae595341
parentbeead7eea896e5bc803027d1f3e0d0f9c3b9d196
octeontx2-af: Fix error code in rvu_mbox_init()

The error code was intended to be -EINVAL here, but it was accidentally
changed to returning success.  Set the error code.

Fixes: e53ee4acb220 ("octeontx2-af: CN20k basic mbox operations and structures")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c