WSL2-Linux-Kernel/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
..
Kconfig iio: dac: Kconfig: sort symbols alphabetically 2020-03-08 17:28:54 +00:00
Makefile iio: dac: ad5770r: Add AD5770R support 2020-03-08 17:28:41 +00:00
ad5064.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5360.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5380.c iio: dac: ad5380: fix incorrect assignment to val 2019-09-03 18:55:50 +01:00
ad5421.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5446.c iio: dac: ad5446: Add support for new AD5600 DAC 2019-11-10 15:14:06 +00:00
ad5449.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5504.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5592r-base.c iio: ad5592r: Drop surplus GPIO header 2019-12-15 11:42:16 +00:00
ad5592r-base.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5592r.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5593r.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5624r_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5686-spi.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5686.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5686.h drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5696-i2c.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5755.c iio: ad5755: fix spelling mistake "to" -> "too" and grammar plus formatting 2020-02-14 12:08:22 +00:00
ad5758.c iio: dac: ad5758: remove set but not used variable 'dc_dc_mode' 2019-04-27 14:15:39 +01:00
ad5761.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5764.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad7303.c iio: dac: ad7303: use regulator get optional to check for ext supply 2019-11-23 14:25:02 +00:00
ad8801.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
cio-dac.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
dpot-dac.c iio: dpot-dac: mark expected switch fall-through with text GCC expects. 2018-10-14 18:01:00 +01:00
ds4424.c Merge 5.2-rc6 into staging-next 2019-06-23 13:29:03 +02:00
lpc18xx_dac.c iio: dac: lpc18xx: Use devm_platform_ioremap_resource 2019-11-09 12:30:17 +00:00
ltc1660.c iio: dac: add support for ltc1660 2018-08-25 09:24:07 +01:00
ltc2632.c iio: dac: ltc2632: remove some unused defines 2020-02-14 15:06:24 +00:00
m62332.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
max517.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
max5821.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mcp4725.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mcp4922.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
stm32-dac-core.c iio: dac: stm32-dac: better handle reset controller failures 2020-01-18 14:32:01 +00:00
stm32-dac-core.h
stm32-dac.c iio: dac: stm32: add power management support 2019-10-15 21:11:06 +01:00
ti-dac082s085.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ti-dac5571.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ti-dac7311.c iio:dac:ti-dac7311 Add driver for Texas Instrument DAC7311 2018-11-11 15:29:44 +00:00
ti-dac7612.c iio:dac:ti-dac7612: Add driver for Texas Instruments DAC7612 2019-02-09 18:46:02 +00:00
vf610_dac.c iio: dac: vf610: Use devm_platform_ioremap_resource 2019-11-09 12:32:00 +00:00