freebsd-nq/sys/dev/aic7xxx
Conrad Meyer 295e4149b0 aic7xxx(4): Fix unintended sign extension in ahd_inq()
ahd_inb() returns type uint8_t.  The shift left by untyped 24 implicitly
promotes the result to type (signed) int.  Then the binary OR with uint64_t
values sign-extends the integer.  If bit 31 of the read value happened to be
set, the 64-bit result would have all upper 32 bits set to 1 due to OR.  This
is clearly not intended.

Reported by:	Coverity
CID:		980473 (old one!)
2020-01-30 18:12:24 +00:00
..
aicasm
ahc_isa.c
ahc_pci.c
ahd_pci.c
aic7xxx_93cx6.c
aic7xxx_93cx6.h
aic7xxx_inline.h
aic7xxx_osm.c
aic7xxx_osm.h
aic7xxx_pci.c
aic7xxx_reg_print.c
aic7xxx_reg.h
aic7xxx_seq.h
aic7xxx.c Fix trivial whitespace issue that is tripping -Wmisleading-indentation 2019-12-24 22:27:06 +00:00
aic7xxx.h
aic7xxx.reg
aic7xxx.seq
aic79xx_inline.h aic7xxx(4): Fix unintended sign extension in ahd_inq() 2020-01-30 18:12:24 +00:00
aic79xx_osm.c
aic79xx_osm.h
aic79xx_pci.c [aic7xxx] Use correct product name 29320LPE instead of non-existent 39320LPE 2019-01-19 05:31:48 +00:00
aic79xx_reg_print.c
aic79xx_reg.h
aic79xx_seq.h
aic79xx.c
aic79xx.h
aic79xx.reg
aic79xx.seq
aic7770.c
aic_osm_lib.c
aic_osm_lib.h Use callout_func_t instead of the deprecated timeout_t. 2019-12-10 22:06:53 +00:00