aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2019-02-20 17:11:32 +0200
committerElektroschmock <elektroschmock78@googlemail.com>2019-08-20 19:22:07 +0200
commit5c960ce84a8c24cfffcc300101e31b011ca3d7be (patch)
treeeced17f3efc47a185335af98e5997a03f725019c /scripts/gcc-wrapper.py
parent43cd8ffc5ccf0912ae458b9469c51ee18c3f9b79 (diff)
iio: Fix scan mask selection
commit 20ea39ef9f2f911bd01c69519e7d69cfec79fde3 upstream. 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 057ac1acdfc4 ("iio: Use kmalloc_array() in iio_scan_mask_set()"). Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Change-Id: I309752003d76b0b586009ee1524779af8e63b87e
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions