android_kernel_samsung_a7y1.../drivers/scsi/bnx2fc
Colin Ian King 33160ca3e5 scsi: bnx2fc: fix incorrect cast to u64 on shift operation
[ Upstream commit d0c0d902339249c75da85fd9257a86cbb98dfaa5 ]

Currently an int is being shifted and the result is being cast to a u64
which leads to undefined behaviour if the shift is more than 31 bits. Fix
this by casting the integer value 1 to u64 before the shift operation.

Addresses-Coverity: ("Bad shift operation")
Fixes: 7b594769120b ("[SCSI] bnx2fc: Handle REC_TOV error code from firmware")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 19:03:14 +02:00
..
57xx_hsi_bnx2fc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc_constants.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc_debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc_debug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc_els.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc_fcoe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc_hwi.c scsi: bnx2fc: fix incorrect cast to u64 on shift operation 2020-04-06 19:03:14 +02:00
bnx2fc_io.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc_tgt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnx2fc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30