[PATCH v2] pinctrl: freescale: imx-scmi: Use kmemdup_array instead of kmemdup for multiple allocation

Linus Walleij linus.walleij at linaro.org
Mon Aug 26 01:48:15 PDT 2024


On Fri, Aug 23, 2024 at 12:55 PM Shen Lichuan <shenlichuan at vivo.com> wrote:

> Let the kmemdup_array() take care about multiplication
> and possible overflows.
>
> Signed-off-by: Shen Lichuan <shenlichuan at vivo.com>
> Reviewed-by: Peng Fan <peng.fan at nxp.com>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list