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
|
||
|---|---|---|
| .. | ||
| accel | ||
| adc | ||
| afe | ||
| amplifiers | ||
| buffer | ||
| chemical | ||
| common | ||
| counter | ||
| dac | ||
| dummy | ||
| frequency | ||
| gyro | ||
| health | ||
| humidity | ||
| imu | ||
| light | ||
| magnetometer | ||
| multiplexer | ||
| orientation | ||
| potentiometer | ||
| potentiostat | ||
| pressure | ||
| proximity | ||
| resolver | ||
| temperature | ||
| trigger | ||
| Kconfig | ||
| Makefile | ||
| iio_core.h | ||
| iio_core_trigger.h | ||
| industrialio-buffer.c | ||
| industrialio-configfs.c | ||
| industrialio-core.c | ||
| industrialio-event.c | ||
| industrialio-sw-device.c | ||
| industrialio-sw-trigger.c | ||
| industrialio-trigger.c | ||
| industrialio-triggered-event.c | ||
| inkern.c | ||