diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-09 23:22:47 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-05-20 10:56:43 -0400 |
commit | 41552199b5518fe26bee0829a28dd1880441b430 (patch) | |
tree | 4833ff7ee84b433ba835e704d7804940a6113ee2 /lib/bust_spinlocks.c | |
parent | 69b9c52ca5c052b807a69712a9ee1d6f085bcb4f (diff) | |
download | linux-41552199b5518fe26bee0829a28dd1880441b430.tar.bz2 |
scsi: myrs: Fix uninitialized variable
drivers/scsi/myrs.c: In function 'myrs_log_event':
drivers/scsi/myrs.c:821:24: warning: 'sshdr.sense_key' may be used uninitialized in this function [-Wmaybe-uninitialized]
struct scsi_sense_hdr sshdr;
If ev->ev_code is not 0x1C, sshdr.sense_key may be used uninitialized. Fix
this by initializing variable 'sshdr' to 0.
Fixes: 77266186397c ("scsi: myrs: Add Mylex RAID controller (SCSI interface)")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'lib/bust_spinlocks.c')
0 files changed, 0 insertions, 0 deletions