]> www.infradead.org Git - users/jedix/linux-maple.git/commit
driver core: platform: Switch to use kmemdup_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Jun 2024 16:49:26 +0000 (19:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jul 2024 10:02:38 +0000 (12:02 +0200)
commit23c6859677066fa3d6bb3672703636dd673cb5dd
treef522104072b2c15862074e577b3e2db15bba510e
parentd69d804845985c29ab5be5a4b3b1f4787893daf8
driver core: platform: 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>
Link: https://lore.kernel.org/r/20240606164926.3031358-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/platform.c