diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-07-24 13:02:03 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-07-29 13:47:28 +0200 |
commit | 5a0821e0e369b7c1d65bd10251fe42c7a55d74d5 (patch) | |
tree | 22602959dc6c5ab96af6166d45f34df2af999222 /drivers/iio/potentiometer | |
parent | iio: core: Use sysfs_match_string() helper (diff) | |
download | linux-5a0821e0e369b7c1d65bd10251fe42c7a55d74d5.tar.xz linux-5a0821e0e369b7c1d65bd10251fe42c7a55d74d5.zip |
iio: core: Switch to krealloc_array()
Let the krealloc_array() copy the original data and
check for a multiplication overflow.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230724110204.46285-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/potentiometer')
0 files changed, 0 insertions, 0 deletions