diff options
| author | Markus Elfring <elfring@users.sourceforge.net> | 2016-09-23 22:30:32 +0200 |
|---|---|---|
| committer | Elektroschmock <elektroschmock78@googlemail.com> | 2019-08-20 19:22:07 +0200 |
| commit | 43cd8ffc5ccf0912ae458b9469c51ee18c3f9b79 (patch) | |
| tree | fad0ceb513943010f5ba345bb960c6f4e6ab0a9e /lib/mpi/mpi-bit.c | |
| parent | b009d80ec2102ef44307b8576f8969d795ecfe0c (diff) | |
iio: Use kmalloc_array() in iio_scan_mask_set()
commit 057ac1acdfc4743f066fcefe359385cad00549eb upstream.
A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kmalloc_array".
This issue was detected by using the Coccinelle software.
Change-Id: I56a1fb8b1124230dcc53d0100fe2eef31952a789
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
