]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: csiostor: Uninitialized data in csio_ln_vnp_read_cbfn()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Oct 2021 07:32:43 +0000 (10:32 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 12 Oct 2021 16:10:34 +0000 (12:10 -0400)
commit6acaee7f5cead8f670a907bedd7bbbdc0c1cdd6e
tree06e94e2a78e24381f00884ddfe74c7645d4a5abb
parentff405d5cd51596d5118c3dd08ef182a4d1816d31
scsi: csiostor: Uninitialized data in csio_ln_vnp_read_cbfn()

This variable is just a temporary variable, used to do an endian
conversion.  The problem is that the last byte is not initialized.  After
the conversion is completely done, the last byte is discarded so it doesn't
cause a problem.  But static checkers and the KMSan runtime checker can
detect the uninitialized read and will complain about it.

Link: https://lore.kernel.org/r/20211006073242.GA8404@kili
Fixes: 6129e2a3f61d ("[SCSI] csiostor: Fix sparse warnings.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/csiostor/csio_lnode.c