Commit e8807544 authored by Shen Lichuan's avatar Shen Lichuan Committed by Linus Walleij
Browse files

pinctrl: freescale: imx-scmi: Use kmemdup_array instead of kmemdup for multiple allocation



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

Signed-off-by: default avatarShen Lichuan <shenlichuan@vivo.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/20240823105421.50017-1-shenlichuan@vivo.com


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