iio: Use kmalloc_array() in iio_scan_mask_set() [Linux 3.16.72]

This Linux kernel change "iio: Use kmalloc_array() in iio_scan_mask_set()" is included in the Linux 3.16.72 release. This change is authored by Markus Elfring <elfring [at] users.sourceforge.net> on Fri Sep 23 22:30:32 2016 +0200. The commit for this change in Linux stable tree is 326b6ad (patch) which is from upstream commit 057ac1a. The same Linux upstream […]

iio: Use kmalloc_array() in iio_scan_mask_set() [Linux 4.10]

This Linux kernel change "iio: Use kmalloc_array() in iio_scan_mask_set()" is included in the Linux 4.10 release. This change is authored by Markus Elfring <elfring [at] users.sourceforge.net> on Fri Sep 23 22:30:32 2016 +0200. The commit for this change in Linux stable tree is 057ac1a (patch). iio: Use kmalloc_array() in iio_scan_mask_set() A multiplication for the size […]