]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: mmp: Switch to use kmemdup_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Aug 2024 12:54:07 +0000 (15:54 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Aug 2024 00:37:25 +0000 (17:37 -0700)
commit0da7faca5319a07a2f02df3e17e665fd7718c9b9
tree08162d883d7bc3504d084b10a985bc558e9efd43
parentde7aeb5dddd484a9b840dcb53449e5c15f5d3e97
clk: mmp: Switch to use kmemdup_array()

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240814125513.2637955-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mmp/clk-mix.c