[PATCH] pinctrl: check devm_kasprintf() returned value
Linus Walleij
linus.walleij at linaro.org
Mon Sep 23 02:08:40 PDT 2024
On Thu, Sep 5, 2024 at 4:09 AM Ma Ke <make24 at iscas.ac.cn> wrote:
> devm_kasprintf() can return a NULL pointer on failure but this returned
> value is not checked. Fix this lack and check the returned value.
>
> Found by code review.
>
> Cc: stable at vger.kernel.org
> Fixes: a0f160ffcb83 ("pinctrl: add pinctrl/GPIO driver for Apple SoCs")
> Signed-off-by: Ma Ke <make24 at iscas.ac.cn>
Good catch!
Patch applied for fixes.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list