]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: visconti: Switch to use kmemdup_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Aug 2024 12:54:08 +0000 (15:54 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Aug 2024 00:37:25 +0000 (17:37 -0700)
commit1b2ed9df08007bfa44d818f6511af43bf089e63b
tree83baa7a81dbf015fca6b95847542a87f20186383
parent0da7faca5319a07a2f02df3e17e665fd7718c9b9
clk: visconti: 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-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/visconti/pll.c