Searched hist:d0c0d902339249c75da85fd9257a86cbb98dfaa5 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_hwi.c | diff d0c0d902339249c75da85fd9257a86cbb98dfaa5 Sat May 04 11:48:29 CDT 2019 Colin Ian King <colin.king@canonical.com> scsi: bnx2fc: fix incorrect cast to u64 on shift operation
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>
|