Files
linux/drivers/scsi
Colin Ian King ccc9ba8d25 scsi: bnx2fc: fix incorrect cast to u64 on shift operation
[ Upstream commit d0c0d90233 ]

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: 7b59476912 ("[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>
2019-06-19 08:18:03 +02:00
..
2019-05-16 19:41:23 +02:00
2019-02-12 19:47:25 +01:00
2018-06-19 22:02:25 -04:00
2018-07-10 22:42:47 -04:00
2018-06-12 16:19:22 -07:00
2018-08-21 23:54:17 -04:00
2018-06-12 16:19:22 -07:00
2017-12-04 20:32:53 -05:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2018-05-18 12:03:51 -04:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2017-08-25 17:21:10 -04:00
2016-01-27 20:36:10 +08:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2017-04-13 13:58:20 -04:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2016-02-23 21:27:02 -05:00
2017-04-26 18:32:29 -04:00
2018-05-01 23:30:12 -04:00