linux/drivers/iio/dac
Colin Ian King 9d47964bfd iio: ad5755: fix off-by-one on devnr limit check
The comparison for devnr limits is off-by-one, the current check
allows 0 to AD5755_NUM_CHANNELS and the limit should be in fact
0 to AD5755_NUM_CHANNELS - 1.  This can lead to an out of bounds
write to pdata->dac[devnr]. Fix this by replacing > with >= on the
comparison.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Fixes: c947459979 ("iio: ad5755: add support for dt bindings")
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-08-29 16:15:24 +01:00
..
ad5064.c iio:ad5064: Add AD5625/AD5627/AD5645/AD5647/AD4665/AD5657 support 2016-02-08 18:51:26 +00:00
ad5360.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5380.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5421.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
ad5446.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5449.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5504.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
ad5592r-base.c iio: dac: ad5592r: Off by one bug in ad5592r_alloc_channels() 2016-05-04 10:52:43 +01:00
ad5592r-base.h iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs 2016-04-10 14:29:06 +01:00
ad5592r.c iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs 2016-04-10 14:29:06 +01:00
ad5593r.c iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs 2016-04-10 14:29:06 +01:00
ad5624r_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5624r.h
ad5686.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5755.c iio: ad5755: fix off-by-one on devnr limit check 2016-08-29 16:15:24 +01:00
ad5761.c iio: add ad5761 DAC driver 2016-01-24 14:46:21 +00:00
ad5764.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad5791.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad7303.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
cio-dac.c iio: Add IIO support for the Measurement Computing CIO-DAC family 2016-07-24 19:58:43 +01:00
Kconfig iio: Add IIO support for the Measurement Computing CIO-DAC family 2016-07-24 19:58:43 +01:00
lpc18xx_dac.c iio: dac: add NXP LPC18xx DAC driver 2016-03-12 18:12:37 +00:00
m62332.c iio:dac:m62332: use dynamic scale 2015-10-11 15:45:17 +01:00
Makefile iio: Add IIO support for the Measurement Computing CIO-DAC family 2016-07-24 19:58:43 +01:00
max517.c iio: max517: Add support for MAX520 and MAX521 chips. 2015-03-28 10:57:34 +00:00
max5821.c iio: dac: max5821: Fix module autoload for OF platform driver 2015-09-23 20:23:23 +01:00
mcp4725.c Merge 4.5-rc3 into staging-next 2016-02-07 17:34:04 -08:00
mcp4922.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
stx104.c Second round of new iio device support, features and cleanups in the 4.8 cycle 2016-06-29 15:35:01 -07:00
vf610_dac.c iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC 2016-02-24 20:52:55 +00:00