commit | c0e8ed04b32307c192bcf37f5810e490e4d2739e | [log] [tgz] |
---|---|---|
author | Helge Deller <deller@gmx.de> | Thu Aug 10 21:08:49 2017 +0200 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Thu Aug 24 22:28:54 2017 -0400 |
tree | 6307e7ef8c5eaa37cc02af29215d14dd2b37f438 | |
parent | 8a97712e5314aefe16b3ffb4583a34deaa49de04 [diff] |
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>