diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2018-04-10 11:57:47 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-04-15 20:21:33 +0100 |
commit | f0c8d1f6dc8eac5a1fbf441c8e080721a7b6c0ff (patch) | |
tree | b235d3d01d6d1f2c3eeb8548c6785bfd424f70c0 /net/tipc/net.c | |
parent | 3d13de4b027d5f6276c0f9d3a264f518747d83f2 (diff) |
iio: adc: at91-sama5d2_adc: fix channel configuration for differential channels
When iterating through the channels, the index in the array is not the
scan index. Added an xlate function to translate to the proper index.
The result of the bug is that the channel array is indexed with a wrong index,
thus instead of the proper channel, we access invalid memory, which may
lead to invalid results and/or corruption.
This will be used also for devicetree channel xlate.
Fixes: 5e1a1da0f ("iio: adc: at91-sama5d2_adc: add hw trigger and buffer support")
Fixes: 073c66201 ("iio: adc: at91-sama5d2_adc: add support for DMA")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'net/tipc/net.c')
0 files changed, 0 insertions, 0 deletions