]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit4da74db0d9a6ffe053d3a3efa756906e0afc4cf7
tree5d945f02723b8c8616d1c7a5f6a6ae0ab0fdddd1
parent46c6d45d7875a0328258a574e376ae75f7b2a64b
cxlflash: shift wrapping bug in afu_link_reset()

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

Fixes: c21e0bbfc485 ('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