drivers/pinctrl: Switch to use kmemdup_array()
authorShen Lichuan <shenlichuan@vivo.com>
Thu, 22 Aug 2024 04:41:56 +0000 (12:41 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Aug 2024 08:27:52 +0000 (10:27 +0200)
commitca428f12c8eded243daeb10e6ff4be6bf4274617
tree386322c5c1807bebeb02461abffa6f8043679073
parent0f978da67aaeb86c1a3804ce533939b3f90530eb
drivers/pinctrl: Switch to use kmemdup_array()

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

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Link: https://lore.kernel.org/20240822044156.2301-1-shenlichuan@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-utils.c