]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: qla2xxx: Fix error return code in qla82xx_write_flash_dword()
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 14 May 2021 09:09:52 +0000 (17:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 15 May 2021 21:20:28 +0000 (17:20 -0400)
commit5cb289bf2d7c34ca1abd794ce116c4f19185a1d4
tree6c7985908d0b9d854e5e164ff87ec100f5dd8204
parent73578af92a0fae6609b955fcc9113e50e413c80f
scsi: qla2xxx: Fix error return code in qla82xx_write_flash_dword()

Fix to return a negative error code from the error handling case instead of
0 as done elsewhere in this function.

Link: https://lore.kernel.org/r/20210514090952.6715-1-thunder.leizhen@huawei.com
Fixes: a9083016a531 ("[SCSI] qla2xxx: Add ISP82XX support.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_nx.c