mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
sfc: fix error code in efx_devlink_info_running_versions()
Return -EIO if efx_mcdi_rpc() doesn't return enough space.
Fixes: 14743ddd24 ("sfc: add devlink info support for ef100")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://patch.msgid.link/afGpsbLRHL4_H0KS@stanley.mountain
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
58689498ca
commit
051ffb001b
@@ -531,7 +531,7 @@ static int efx_devlink_info_running_versions(struct efx_nic *efx,
|
||||
if (rc || outlength < MC_CMD_GET_VERSION_OUT_LEN) {
|
||||
netif_err(efx, drv, efx->net_dev,
|
||||
"mcdi MC_CMD_GET_VERSION failed\n");
|
||||
return rc;
|
||||
return rc ?: -EIO;
|
||||
}
|
||||
|
||||
/* Handle previous output */
|
||||
|
||||
Reference in New Issue
Block a user