Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sfc: fix error code in efx_devlink_info_running_versions()

Return -EIO if efx_mcdi_rpc() doesn't return enough space.

Fixes: 14743ddd2495 ("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>

authored by

Dan Carpenter and committed by
Paolo Abeni
051ffb00 58689498

+1 -1
+1 -1
drivers/net/ethernet/sfc/efx_devlink.c
··· 531 531 if (rc || outlength < MC_CMD_GET_VERSION_OUT_LEN) { 532 532 netif_err(efx, drv, efx->net_dev, 533 533 "mcdi MC_CMD_GET_VERSION failed\n"); 534 - return rc; 534 + return rc ?: -EIO; 535 535 } 536 536 537 537 /* Handle previous output */