regmap: Switch to use kmemdup_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Jun 2024 16:46:22 +0000 (19:46 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 7 Jun 2024 13:28:21 +0000 (14:28 +0100)
commitf6841d41a8a36a4c5cbfee39280845f83fed6a87
treed1c666cff89cc0f78b6224731d036b2b4fd5669f
parent0ae747759930186fbc3ab470ac4e40899c52438c
regmap: 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/20240606164717.3031107-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c