alistair23-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
ad5360.c
ad5380.c
ad5421.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
ad5446.c
ad5449.c
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.h
ad5624r_spi.c
ad5686.c
ad5755.c iio: ad5755: fix off-by-one on devnr limit check 2016-08-29 16:15:24 +01:00
ad5761.c
ad5764.c
ad5791.c
ad7303.c
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
Makefile iio: Add IIO support for the Measurement Computing CIO-DAC family 2016-07-24 19:58:43 +01:00
max517.c
max5821.c
mcp4725.c
mcp4922.c
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