Commit a9c470d2 authored by Yu Jiaoliang's avatar Yu Jiaoliang Committed by Linus Walleij
Browse files

pinctrl: nomadik: Use kmemdup_array instead of kmemdup for multiple allocation



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

Signed-off-by: default avatarYu Jiaoliang <yujiaoliang@vivo.com>
Link: https://lore.kernel.org/20240826074037.2313468-1-yujiaoliang@vivo.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent cd77b0dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment