summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-05-04 17:48:29 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-22 08:18:23 +0200
commitf80a35fcb9e922d8731125ed09714019e07b24f5 (patch)
treedf64234632d7e4a604e4ac13078fef9b97029809 /drivers/input
parentda51a322f197bf62736eba3f8c8151b5d2743903 (diff)
downloadlinux-stable-f80a35fcb9e922d8731125ed09714019e07b24f5.tar.gz
linux-stable-f80a35fcb9e922d8731125ed09714019e07b24f5.tar.bz2
linux-stable-f80a35fcb9e922d8731125ed09714019e07b24f5.zip
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>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions