]> git.baikalelectronics.ru Git - kernel.git/commit
cxlflash: shift wrapping bug in afu_link_reset()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Aug 2015 08:57:43 +0000 (11:57 +0300)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 27 Aug 2015 01:07:37 +0000 (18:07 -0700)
commitaadc59189121be7039cbd901a2ef15ef4e1fb42f
tree5d945f02723b8c8616d1c7a5f6a6ae0ab0fdddd1
parent52b3eb4df78d5176671fe750b3d2e1a21d3787e6
cxlflash: shift wrapping bug in afu_link_reset()

"port_sel" is a u64 so the shifting should also be a 64 bit shift.

Fixes: f4e746588c68 ('cxlflash: Base support for IBM CXL Flash Adapter')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/cxlflash/main.c