mirror of
https://github.com/torvalds/linux.git
synced 2025-04-12 16:47:42 +00:00
pds_core: add an error code check in pdsc_dl_info_get
check the value of 'ret' after call 'devlink_info_version_stored_put'. Signed-off-by: Su Hui <suhui@nfschina.com> Reviewed-by: Shannon Nelson <shannon.nelson@amd.com> Link: https://lore.kernel.org/r/20231019083351.1526484-1-suhui@nfschina.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
86a0348de9
commit
a1e4c334cb
@ -124,6 +124,8 @@ int pdsc_dl_info_get(struct devlink *dl, struct devlink_info_req *req,
|
||||
snprintf(buf, sizeof(buf), "fw.slot_%d", i);
|
||||
err = devlink_info_version_stored_put(req, buf,
|
||||
fw_list.fw_names[i].fw_version);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
||||
err = devlink_info_version_running_put(req,
|
||||
|
Loading…
x
Reference in New Issue
Block a user