Files
linux/drivers
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 <[email protected]>
Signed-off-by: Alexandru Ardelean <[email protected]>
Fixes commit 057ac1acdf ("iio: Use kmalloc_array() in iio_scan_mask_set()").
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
2019-03-09 16:55:06 +00:00
..
…
…
…
…
…
…
…
…
2019-02-11 09:05:58 +01:00
…
…
2019-03-09 16:55:06 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-03-04 15:32:51 +00:00
…
…
…
…
…
…
…
…