[PATCH] pinctrl: aspeed: Fix potential NULL dereference in aspeed_pinmux_set_mux()

Linus Walleij linus.walleij at linaro.org
Fri Jun 3 20:13:18 AEST 2022


On Thu, Apr 21, 2022 at 4:28 AM Haowen Bai <baihaowen at meizu.com> wrote:

> pdesc could be null but still dereference pdesc->name and it will lead to
> a null pointer access. So we move a null check before dereference.
>
> Signed-off-by: Haowen Bai <baihaowen at meizu.com>

Patch applied, sorry for missing it!

Yours,
Linus Walleij


More information about the Linux-aspeed mailing list