clk: rockchip: Switch to use kmemdup_array()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Jun 2024 16:09:32 +0000 (19:09 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 23 Jun 2024 20:10:48 +0000 (22:10 +0200)
commitfc547ab06c87f7c4a7e2425a89759f7a9a6fd7c1
tree93a07138063df21acc5ad01e826cad9258cd0ae7
parent5c0e997e57a66bd225318963193b8d006adbbb47
clk: rockchip: 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/20240606161028.2986587-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-cpu.c
drivers/clk/rockchip/clk-pll.c