linux_dsm_epyc7002/drivers/iio/dac
Colin Ian King dd6230ba1d iio: dac: ad5770r: fix off-by-one check on maximum number of channels
Currently there is an off-by-one check on the number of channels that
will cause an arry overrun in array st->output_mode when calling the
function d5770r_store_output_range. Fix this by using >= rather than >
to check for maximum number of channels.

Addresses-Coverity: ("Out-of-bounds access")
Fixes: cbbb819837 ("iio: dac: ad5770r: Add AD5770R support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-04-19 17:50:01 +01:00
..
ad5064.c
ad5360.c
ad5380.c
ad5421.c
ad5446.c
ad5449.c
ad5504.c
ad5592r-base.c
ad5592r-base.h
ad5592r.c
ad5593r.c
ad5624r_spi.c
ad5624r.h
ad5686-spi.c
ad5686.c
ad5686.h
ad5696-i2c.c
ad5755.c
ad5758.c
ad5761.c
ad5764.c
ad5770r.c iio: dac: ad5770r: fix off-by-one check on maximum number of channels 2020-04-19 17:50:01 +01:00
ad5791.c
ad7303.c
ad8801.c
cio-dac.c
dpot-dac.c
ds4424.c
Kconfig iio: dac: Kconfig: sort symbols alphabetically 2020-03-08 17:28:54 +00:00
lpc18xx_dac.c
ltc1660.c
ltc2632.c iio: dac: ltc2632: remove some unused defines 2020-02-14 15:06:24 +00:00
m62332.c
Makefile iio: dac: ad5770r: Add AD5770R support 2020-03-08 17:28:41 +00:00
max517.c
max5821.c
mcp4725.c
mcp4922.c
stm32-dac-core.c
stm32-dac-core.h
stm32-dac.c
ti-dac082s085.c
ti-dac5571.c
ti-dac7311.c
ti-dac7612.c
vf610_dac.c