diff options
author | Lars-Peter Clausen <[email protected]> | 2019-02-20 17:11:32 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2019-03-09 16:55:06 +0000 |
commit | 20ea39ef9f2f911bd01c69519e7d69cfec79fde3 (patch) | |
tree | a07be85f251ac1fdc8b88a2068f9a5c5fe587949 /net/lapb/lapb_timer.c | |
parent | 7ce0f216221856a17fc4934b39284678a5fef2e9 (diff) |
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 057ac1acdfc4 ("iio: Use kmalloc_array() in iio_scan_mask_set()").
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions