WSL2-Linux-Kernel/drivers/scsi/sym53c8xx_2
Helge Deller c0e8ed04b3 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>
2017-08-24 22:28:54 -04:00
..
Makefile
sym53c8xx.h
sym_defs.h
sym_fw.c
sym_fw.h
sym_fw1.h Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_fw2.h Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_glue.c scsi: sym53c8xx_2: Use complete() instead complete_all() 2016-09-14 13:19:29 -04:00
sym_glue.h treewide: Fix common typo in "identify" 2013-10-14 15:31:06 +02:00
sym_hipd.c scsi: sym53c8xx: Avoid undefined behaviour 2017-08-24 22:28:54 -04:00
sym_hipd.h scsi: use 64-bit LUNs 2014-07-17 22:07:37 +02:00
sym_malloc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_misc.h [SCSI] replace __inline with inline 2009-04-03 10:23:16 -05:00
sym_nvram.c
sym_nvram.h