diff options
author | Helge Deller <deller@gmx.de> | 2017-08-10 21:08:49 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-25 04:28:54 +0200 |
commit | c0e8ed04b32307c192bcf37f5810e490e4d2739e (patch) | |
tree | 6307e7ef8c5eaa37cc02af29215d14dd2b37f438 /drivers/clk | |
parent | scsi: make 'state' device attribute pollable (diff) | |
download | linux-c0e8ed04b32307c192bcf37f5810e490e4d2739e.tar.xz linux-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/clk')
0 files changed, 0 insertions, 0 deletions