OpenCloudOS-Kernel/drivers/scsi/qla2xxx
Tom Rix 21a6cd48bb scsi: qla2xxx: Initialize variable in qla8044_poll_reg()
clang static analysis reports this problem:

qla_nx2.c:694:3: warning: 6th function call argument is
  an uninitialized value
        ql_log(ql_log_fatal, vha, 0xb090,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In qla8044_poll_reg(), when reading the reg fails, the error is reported by
reusing the timeout error reporter.  Because the value is unset, a garbage
value will be reported.  Initialize the value.

Link: https://lore.kernel.org/r/20201005144544.25335-1-trix@redhat.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-10-07 23:50:03 -04:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla_attr.c scsi: qla2xxx: Fix reset of MPI firmware 2020-09-29 23:22:17 -04:00
qla_bsg.c scsi: qla2xxx: Remove a superfluous cast 2020-06-30 23:12:20 -04:00
qla_bsg.h scsi: qla2xxx: Add 28xx flash primary/secondary status/image mechanism 2019-03-19 12:22:55 -04:00
qla_dbg.c scsi: qla2xxx: Fix inconsistent format argument type in qla_dbg.c 2020-10-02 19:01:18 -04:00
qla_dbg.h scsi: qla2xxx: Allow ql2xextended_error_logging special value 1 to be set anytime 2020-08-17 22:40:13 -04:00
qla_def.h scsi: qla2xxx: Fix point-to-point (N2N) device discovery issue 2020-09-29 23:22:19 -04:00
qla_devtbl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla_dfs.c scsi: qla2xxx: Add IOCB resource tracking 2020-09-22 18:42:49 -04:00
qla_dsd.h scsi: qla2xxx: Include the <asm/unaligned.h> header file from qla_dsd.h 2019-08-12 21:34:04 -04:00
qla_fw.h scsi: qla2xxx: Honor status qualifier in FCP_RSP per spec 2020-09-22 18:42:40 -04:00
qla_gbl.h scsi: qla2xxx: Fix reset of MPI firmware 2020-09-29 23:22:17 -04:00
qla_gs.c scsi: qla2xxx: Reduce duplicate code in reporting speed 2020-09-22 18:42:41 -04:00
qla_init.c scsi: qla2xxx: Fix reset of MPI firmware 2020-09-29 23:22:17 -04:00
qla_inline.h scsi: qla2xxx: Add IOCB resource tracking 2020-09-22 18:42:49 -04:00
qla_iocb.c scsi: qla2xxx: Fix buffer-buffer credit extraction error 2020-09-29 23:22:15 -04:00
qla_isr.c scsi: qla2xxx: Do not consume srb greedily 2020-10-07 23:50:03 -04:00
qla_mbx.c scsi: qla2xxx: Fix point-to-point (N2N) device discovery issue 2020-09-29 23:22:19 -04:00
qla_mid.c scsi: qla2xxx: Performance tweak 2020-09-22 18:42:45 -04:00
qla_mr.c scsi: qla2xxx: Fix endianness annotations in source files 2020-05-19 21:43:28 -04:00
qla_mr.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_nvme.c scsi: qla2xxx: Use constant when it is known 2020-10-07 23:50:03 -04:00
qla_nvme.h scsi: qla2xxx: Add SLER and PI control support 2020-09-22 18:42:51 -04:00
qla_nx.c scsi: qla2xxx: Initialize 'n' before using it 2020-06-30 23:12:20 -04:00
qla_nx.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_nx2.c scsi: qla2xxx: Initialize variable in qla8044_poll_reg() 2020-10-07 23:50:03 -04:00
qla_nx2.h scsi: qla2xxx: Remove unused symbols 2018-02-12 11:43:24 -05:00
qla_os.c scsi: qla2xxx: Fix inconsistent format argument type in qla_os.c 2020-10-02 19:01:18 -04:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Fix endianness annotations in source files 2020-05-19 21:43:28 -04:00
qla_target.c scsi: qla2xxx: Fix crash on session cleanup with unload 2020-09-29 23:22:18 -04:00
qla_target.h scsi: qla2xxx: Remove the __packed annotation from struct fcp_hdr and fcp_hdr_le 2020-06-30 23:12:19 -04:00
qla_tmpl.c scsi: qla2xxx: Fix reset of MPI firmware 2020-09-29 23:22:17 -04:00
qla_tmpl.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_version.h scsi: qla2xxx: Update version to 10.02.00.103-k 2020-09-29 23:22:20 -04:00
tcm_qla2xxx.c scsi: qla2xxx: Fix inconsistent format argument type in tcm_qla2xxx.c 2020-10-02 19:01:17 -04:00
tcm_qla2xxx.h scsi: qla2xxx: deadlock by configfs_depend_item 2018-12-19 21:26:38 -05:00