diff options
author | 2014-01-13 16:02:00 +0000 | |
---|---|---|
committer | 2014-02-08 10:06:30 +0000 | |
commit | d4bf105bb65b61fd9036031a1854383381ef638f (patch) | |
tree | 96384feff84219f9b1228b8eefeb662726c69cc8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | iio:magnetometer:mag3110: Fix output of decimal digits in show_int_plus_micros() (diff) | |
download | linux-dev-d4bf105bb65b61fd9036031a1854383381ef638f.tar.xz linux-dev-d4bf105bb65b61fd9036031a1854383381ef638f.zip |
iio: mxs-lradc: fix buffer overflow
Fixes:
drivers/staging/iio/adc/mxs-lradc.c:1556 mxs_lradc_probe() error: buffer
overflow 'iio->channels' 15 <= 15
The reported available scales for in_voltage15 were also wrong.
The realbits lookup is not necessary as all the channels of the LRADC have the
same resolution, use LRADC_RESOLUTION instead.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions