mirror-linux/drivers/iio
Lars-Peter Clausen 20ea39ef9f iio: Fix scan mask selection
The trialmask is expected to have all bits set to 0 after allocation.
Currently kmalloc_array() is used which does not zero the memory and so
random bits are set. This results in random channels being enabled when
they shouldn't. Replace kmalloc_array() with kcalloc() which has the same
interface but zeros the memory.

Note the fix is actually required earlier than the below fixes tag, but
will require a manual backport due to move from kmalloc to kmalloc_array.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Fixes commit 057ac1acdf ("iio: Use kmalloc_array() in iio_scan_mask_set()").
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-03-09 16:55:06 +00:00
..
accel iio:accel:adxl345: Change alignment to match paranthesis 2019-02-09 18:46:02 +00:00
adc - New Drivers 2019-03-08 10:02:58 -08:00
afe
amplifiers
buffer
chemical Second set of new device support, features and cleanup for IIO in the 5.1 cycle. 2019-02-13 08:24:50 +01:00
common iio: hid-sensor-hub: clean up indentation, remove extraneous tab 2018-11-25 14:03:59 +00:00
counter
dac iio:dac:ti-dac7612: Add driver for Texas Instruments DAC7612 2019-02-09 18:46:02 +00:00
dummy
frequency iio: ad9523: fix a missing check of return value 2019-01-05 16:10:50 +00:00
gyro iio/gyro/bmg160: Use millidegrees for temperature scale 2019-03-09 16:55:05 +00:00
health
humidity iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
imu iio:bmi160: use if (ret) instead of if (ret < 0) 2019-02-09 15:25:25 +00:00
light iio: light: add driver for MAX44009 2019-02-02 15:47:46 +00:00
magnetometer iio: magnetometer: mag3110: add vdd/vddio regulator operation support 2019-01-12 19:00:23 +00:00
multiplexer
orientation iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
potentiometer iio: potentiometer: Add driver for Microchip MCP41xxx/42xxx 2018-11-25 12:35:26 +00:00
potentiostat
pressure iio:st_pressure:initial lps22hh sensor support 2019-01-19 17:32:41 +00:00
proximity
resolver staging:iio:ad2s90: Move out of staging 2018-12-01 15:40:39 +00:00
temperature iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
trigger
Kconfig
Makefile
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: Fix scan mask selection 2019-03-09 16:55:06 +00:00
industrialio-configfs.c
industrialio-core.c iio: add IIO_MASSCONCENTRATION channel type 2018-12-16 14:05:57 +00:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c