Re: [PATCH] pinctrl: pinconf-generic: Use kmemdup_array() over kmemdup()

From: Linus Walleij

Date: Tue Apr 28 2026 - 06:07:33 EST


On Sat, Apr 18, 2026 at 9:11 PM Yash Suthar <yashsuthar983@xxxxxxxxx> wrote:

> using kmemdup_array instead of kmemdup ,as it is more
> readable and matches the intent of the api.
> tested with w=1, no new warnings introduced.
>
> Signed-off-by: Yash Suthar <yashsuthar983@xxxxxxxxx>

Patch applied!

Yours,
Linus Walleij