linux/drivers/iio/dac
Dan Carpenter 4f6ca3464d iio: dac: ltc2664: Fix off by one in ltc2664_channel_config()
This comparison should be >= ARRAY_SIZE() instead of >.  The "mspan"
variable is later used as an array index into ltc2664_mspan_lut[] so
this is an off by one bug.

Fixes: 4cc2fc445d ("iio: dac: ltc2664: Add driver for LTC2664 and LTC2672")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/5727ab54-6280-466e-b107-1b6006e5ab29@stanley.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-08-10 11:22:11 +01:00
..
ad3552r.c iio: dac: ad3552r: use devm_regulator_get_enable_read_voltage() 2024-06-25 21:04:51 +01:00
ad5064.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ad5360.c iio: dac: ad5360: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5380.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ad5421.c iio: dac: ad5421: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5446.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ad5449.c iio: dac: ad5449: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5504.c iio: dac: ad5504: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5592r-base.c iio: dac: ad5592r: fix temperature channel scaling value 2024-05-27 09:49:20 +01:00
ad5592r-base.h iio: dac: ad5592r: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5592r.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
ad5593r.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ad5624r_spi.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5686-spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
ad5686.c iio: dac: ad5686: Add support for AD5337 2022-12-28 17:19:45 +00:00
ad5686.h iio: dac: ad5686: Add support for AD5337 2022-12-28 17:19:45 +00:00
ad5696-i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ad5755.c iio: dac: ad5755: make use of of_device_id table 2024-04-13 18:12:14 +01:00
ad5758.c iio:dac:ad5758: Drop unused of specific headers. 2021-12-12 17:12:34 +00:00
ad5761.c iio: dac: ad5761: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5764.c iio: dac: ad5764: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5766.c iio: dac: ad5766: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5770r.c iio: dac: ad5770r: Use device_for_each_child_node_scoped() 2024-04-06 11:18:51 +01:00
ad5791.c iio: dac: ad5791: Add support for controlling RBUF via devicetree 2023-12-04 13:19:48 +00:00
ad7293.c iio: dac: ad7293: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad7303.c iio: dac: ad7303: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad8801.c iio: dac: ad8801: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
ad9739a.c iio: dac: ad9739a: add backend debugfs interface 2024-08-10 11:17:33 +01:00
adi-axi-dac.c iio: dac: adi-axi-dac: support debugfs direct_reg_access 2024-08-10 11:17:33 +01:00
cio-dac.c 1st set of IIO new device support, features and cleanups for the 6.4 cycle. 2023-04-12 09:45:34 +02:00
dpot-dac.c iio: dac: dpot-dac: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00
ds4424.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
Kconfig iio: dac: ltc2664: Add driver for LTC2664 and LTC2672 2024-08-03 10:13:37 +01:00
lpc18xx_dac.c iio: dac: lpc18xx_dac: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00
ltc1660.c iio: dac: ltc1660: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
ltc2632.c iio: dac: ltc2632: Make use of device properties 2022-04-28 19:34:10 +01:00
ltc2664.c iio: dac: ltc2664: Fix off by one in ltc2664_channel_config() 2024-08-10 11:22:11 +01:00
ltc2688.c iio: dac: ltc2688: Constify struct regmap_bus 2024-07-29 20:31:10 +01:00
m62332.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
Makefile iio: dac: ltc2664: Add driver for LTC2664 and LTC2672 2024-08-03 10:13:37 +01:00
max517.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
max5522.c iio: dac: max5522: simplify with spi_get_device_match_data() 2024-06-13 19:19:24 +01:00
max5821.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
mcp4725.c iio: dac: mcp4725: Add dac_reg_offset to struct mcp4725_chip_info 2023-09-12 10:42:04 +01:00
mcp4728.c iio: dac: mcp4728: use devm_regulator_get_enable_read_voltage() 2024-08-03 10:13:38 +01:00
mcp4821.c iio: dac: mcp4821: Switch to including mod_devicetable.h for struct of_device_id definition. 2024-02-28 19:26:35 +00:00
mcp4922.c iio: dac: mcp4922: drop remove() callback 2024-08-03 10:13:38 +01:00
stm32-dac-core.c iio: dac: stm32-dac-core: make use of regmap_set_bits() 2024-06-25 21:04:46 +01:00
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.c iio: dac: stm32-dac: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00
ti-dac082s085.c iio: dac: ti-dac082s085: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
ti-dac5571.c iio: dac: ti-dac5571: Add DAC081C081 support 2024-03-28 13:22:15 +00:00
ti-dac7311.c iio: dac: ti-dac7311: Add check for spi_setup 2024-07-29 20:31:13 +01:00
ti-dac7612.c iio: dac: ti-dac7612: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
vf610_dac.c iio: dac: vf610: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00