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>
This commit is contained in:
Andy Shevchenko 2024-06-06 19:51:45 +03:00 • committed by Thomas Bogendoerfer
commit bc2e65bfc5