aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxlflash
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-08-10 21:08:49 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-24 22:28:54 -0400
commitc0e8ed04b32307c192bcf37f5810e490e4d2739e (patch)
tree6307e7ef8c5eaa37cc02af29215d14dd2b37f438 /drivers/scsi/cxlflash
parentscsi: make 'state' device attribute pollable (diff)
downloadlinux-dev-c0e8ed04b32307c192bcf37f5810e490e4d2739e.tar.xz
linux-dev-c0e8ed04b32307c192bcf37f5810e490e4d2739e.zip
scsi: sym53c8xx: Avoid undefined behaviour
On parisc I see this UBSAN warning with a sym53c896: UBSAN: Undefined behaviour in ./drivers/scsi/sym53c8xx_2/sym_hipd.c:762:24 index -1903078336 is out of range for type 'u32 [7]' Avoid this warning by switching to div64_ul(). [mkp: fix typo] Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxlflash')
0 files changed, 0 insertions, 0 deletions