summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_vma_manager.h
diff options
context:
space:
mode:
authorColin Ian King2019-05-04 18:48:29 +0200
committerMartin K. Petersen2019-05-20 16:56:43 +0200
commitd0c0d902339249c75da85fd9257a86cbb98dfaa5 (patch)
treefc62dedcbe323f281dfb1ba5c0ef27552fa97e53 /include/drm/drm_vma_manager.h
parentscsi: smartpqi: Reporting unhandled SCSI errors (diff)
downloadkernel-qcow2-linux-d0c0d902339249c75da85fd9257a86cbb98dfaa5.tar.gz
kernel-qcow2-linux-d0c0d902339249c75da85fd9257a86cbb98dfaa5.tar.xz
kernel-qcow2-linux-d0c0d902339249c75da85fd9257a86cbb98dfaa5.zip
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>
Diffstat (limited to 'include/drm/drm_vma_manager.h')
0 files changed, 0 insertions, 0 deletions