pinctrl: renesas: Switch to use kmemdup_array()

Let kmemdup_array() take care of multiplication and possible overflow.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240822061438.14617-1-shenlichuan@vivo.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
Shen Lichuan 2024-08-22 14:14:38 +08:00 • committed by Geert Uytterhoeven
commit 5e633f572b
3 changed files with 3 additions and 6 deletions