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
..
2019-03-08 08:23:15 -08:00
2019-02-19 14:50:11 +01:00
2019-03-08 14:12:17 -08:00
2019-02-15 19:48:39 +01:00
2019-03-08 10:09:53 -08:00
2019-03-08 14:12:17 -08:00
2019-03-02 19:51:23 +01:00
2019-03-06 09:41:12 -08:00
2019-02-08 06:46:59 -07:00
2019-03-08 09:19:55 -08:00
2019-03-06 09:41:12 -08:00
2019-03-06 10:15:42 -08:00
2019-03-06 12:59:46 -08:00
2019-03-05 09:09:55 -08:00
2019-03-05 21:07:14 -08:00
2019-03-08 09:11:39 -08:00
2019-02-11 17:21:38 +09:00
2019-03-08 09:50:14 -08:00
2019-02-11 09:05:58 +01:00
2019-02-15 16:54:38 +01:00
2019-03-08 10:09:53 -08:00
2019-03-08 08:23:15 -08:00
2019-03-05 15:43:05 +01:00
2019-02-14 12:36:21 +01:00
2019-03-06 14:18:59 -08:00
2019-02-25 09:06:00 -08:00
2019-03-06 14:18:59 -08:00
2019-03-08 09:27:33 -08:00
2019-03-04 19:05:02 -08:00
2019-02-15 10:49:14 +01:00
2019-03-09 16:55:06 +00:00
2019-03-05 21:07:14 -08:00
2019-03-08 10:02:58 -08:00
2019-03-06 14:52:48 -08:00
2019-03-06 10:22:26 -08:00
2019-03-04 10:54:48 -08:00
2019-03-04 19:33:04 -08:00
2019-02-11 08:18:08 -07:00
2019-02-18 10:40:58 -06:00
2019-03-08 14:12:17 -08:00
2019-02-08 14:20:32 +01:00
2019-03-08 10:09:53 -08:00
2019-03-08 09:27:33 -08:00
2019-03-08 14:12:17 -08:00
2019-03-04 19:23:56 -08:00
2019-03-07 12:56:26 -08:00
2019-02-11 09:09:02 +01:00
2019-03-08 14:12:17 -08:00
2019-03-06 14:18:59 -08:00
2019-02-04 18:33:36 -08:00
2019-03-06 12:59:46 -08:00
2019-02-21 20:37:12 +01:00
2019-02-13 19:45:56 +01:00
2019-03-06 14:52:48 -08:00
2019-02-08 12:27:36 +01:00
2019-03-08 08:23:15 -08:00
2019-03-08 10:09:53 -08:00
2019-03-08 10:09:53 -08:00
2019-02-24 21:12:01 +01:00
2019-02-20 00:41:01 +01:00
2019-02-18 11:31:39 +01:00
2019-03-05 14:08:26 -08:00
2019-03-07 18:32:02 -08:00
2019-03-04 00:01:08 +00:00
2019-02-15 17:21:32 +01:00
2019-03-04 20:23:15 +01:00
2019-03-05 11:13:10 -08:00
2019-03-08 14:12:17 -08:00
2019-03-06 09:41:12 -08:00
2019-03-04 15:32:51 +00:00
2019-02-14 09:14:50 +01:00
2019-03-09 16:55:06 +00:00
2019-02-04 21:40:32 -05:00
2019-03-06 09:41:12 -08:00
2019-03-08 09:52:41 -08:00
2019-03-07 12:20:11 -08:00
2019-03-06 16:48:27 -08:00
2019-03-07 12:56:26 -08:00
2019-02-19 13:14:45 -08:00
2019-03-08 09:58:20 -08:00
2019-02-27 16:00:20 +01:00
2019-02-05 15:29:48 -05:00
2019-03-08 10:02:58 -08:00
2019-03-05 21:07:14 -08:00