]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI/IORT: Switch to use kmemdup_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Jun 2024 16:50:05 +0000 (19:50 +0300)
committerWill Deacon <will@kernel.org>
Fri, 16 Aug 2024 10:33:15 +0000 (11:33 +0100)
commit9cd8062b38e61f11054f13b3c98695c7b1d73b11
treefe3ce63cec1519222a20e21dccf05802efba03c3
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
ACPI/IORT: Switch to use kmemdup_array()

Let the kememdup_array() take care about multiplication and possible
overflows.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/20240606165005.3031490-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/acpi/arm64/iort.c