Commit a1e4c334 authored by Su Hui's avatar Su Hui Committed by Jakub Kicinski

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: default avatarSu Hui <suhui@nfschina.com>
Reviewed-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Link: https://lore.kernel.org/r/20231019083351.1526484-1-suhui@nfschina.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 86a0348d
...@@ -124,6 +124,8 @@ int pdsc_dl_info_get(struct devlink *dl, struct devlink_info_req *req, ...@@ -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); snprintf(buf, sizeof(buf), "fw.slot_%d", i);
err = devlink_info_version_stored_put(req, buf, err = devlink_info_version_stored_put(req, buf,
fw_list.fw_names[i].fw_version); fw_list.fw_names[i].fw_version);
if (err)
return err;
} }
err = devlink_info_version_running_put(req, err = devlink_info_version_running_put(req,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment