]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:22:01 +0000 (19:22 +0200)
commit3c17d37865bd0f2a4ab267b58419068bce052386
tree0c4dce76e366dddda75c4e122baba06ce1e201c0
parent86382f490070c19577c761194e83f6a02007683c
scsi: qla2xxx: Fix error return code in qla82xx_write_flash_dword()

BugLink: https://bugs.launchpad.net/bugs/1931896
[ Upstream commit 5cb289bf2d7c34ca1abd794ce116c4f19185a1d4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/scsi/qla2xxx/qla_nx.c