mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
scsi: csiostor: Uninitialized data in csio_ln_vnp_read_cbfn()
[ Upstream commitf4875d509a
] 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:5036f0a0ec
("[SCSI] csiostor: Fix sparse warnings.") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9c9919557f
commit
e7856bf39a
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ csio_ln_vnp_read_cbfn(struct csio_hw *hw, struct csio_mb *mbp)
|
|||
struct fc_els_csp *csp;
|
||||
struct fc_els_cssp *clsp;
|
||||
enum fw_retval retval;
|
||||
__be32 nport_id;
|
||||
__be32 nport_id = 0;
|
||||
|
||||
retval = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16));
|
||||
if (retval != FW_SUCCESS) {
|
||||
|
|
Loading…
Reference in a new issue