MIPS: Alchemy: Switch to use kmemdup_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Jun 2024 16:51:45 +0000 (19:51 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 11 Jun 2024 08:13:36 +0000 (10:13 +0200)
commitbc2e65bfc5af404d44442fca6d8ae69657df1e11
tree437f1d4fd98953065b80913f09bb9ce941f2d508
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
MIPS: Alchemy: 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>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/alchemy/common/platform.c