Skip to content

Commit c3d79fd

Browse files
ij-intelyilunxu1984
authored andcommitted
fpga: m10bmc-sec: Fix rsu_send_data() to return FW_UPLOAD_ERR_HW_ERROR
rsu_send_data() should return FW_UPLOAD_ERR_* error codes instead of normal -Exxxx codes. Convert <0 return from ->rsu_status() to FW_UPLOAD_ERR_HW_ERROR. Fixes: 001a734 ("fpga: m10bmc-sec: Make rsu status type specific") Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Russ Weight <russell.h.weight@intel.com> Cc: <stable@vger.kernel.org> Acked-by: Xu Yilun <yilun.xu@intel.com> Link: https://lore.kernel.org/r/20230208080846.10795-1-ilpo.jarvinen@linux.intel.com Signed-off-by: Xu Yilun <yilun.xu@intel.com>
1 parent fe15c26 commit c3d79fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/fpga/intel-m10-bmc-sec-update.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ static enum fw_upload_err rsu_send_data(struct m10bmc_sec *sec)
474474

475475
ret = sec->ops->rsu_status(sec);
476476
if (ret < 0)
477-
return ret;
477+
return FW_UPLOAD_ERR_HW_ERROR;
478478
status = ret;
479479

480480
if (!rsu_status_ok(status)) {

0 commit comments

Comments
 (0)