anolis-cloud-kernel/drivers/scsi/mpt3sas
Gu Mi f6746f4f91 scsi: mpt3sas: Fix incorrectly assigned error return and check
ANBZ: #2110

commit 40d3272793 upstream.

Currently the call to _base_static_config_pages() is assigning the error
return to variable 'rc' but checking the error return in error 'r'. Fix
this by assigning the error return to variable 'r' instead of 'rc'.

Link: https://lore.kernel.org/r/20210804134940.114011-1-colin.king@canonical.com
Fixes: 19a622c39a ("scsi: mpt3sas: Handle firmware faults during first half of IOC init")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Unused value")
Signed-off-by: Gu Mi <gumi@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/708
Reviewed-by: Xunlei Pang <xlpang@linux.alibaba.com>
2022-09-19 10:00:28 +00:00
..
mpi
Kconfig
Makefile
mpt3sas_base.c scsi: mpt3sas: Fix incorrectly assigned error return and check 2022-09-19 10:00:28 +00:00
mpt3sas_base.h scsi: mpt3sas: Transition IOC to Ready state during shutdown 2022-09-19 10:00:28 +00:00
mpt3sas_config.c scsi: mpt3sas: Handle firmware faults during first half of IOC init 2022-09-19 10:00:28 +00:00
mpt3sas_ctl.c
mpt3sas_ctl.h
mpt3sas_debug.h
mpt3sas_debugfs.c
mpt3sas_scsih.c scsi: mpt3sas: Stop fw fault watchdog work item during system shutdown 2022-09-19 10:00:28 +00:00
mpt3sas_transport.c
mpt3sas_trigger_diag.c
mpt3sas_trigger_diag.h
mpt3sas_trigger_pages.h scsi: mpt3sas: Add persistent trigger pages support 2022-09-19 10:00:28 +00:00
mpt3sas_warpdrive.c