[PATCH] pinctrl: single: fix potential NULL dereference in pcs_get_function()
Linus Walleij
linus.walleij at linaro.org
Fri Aug 23 09:05:30 PDT 2024
On Thu, Aug 8, 2024 at 6:14 AM Ma Ke <make24 at iscas.ac.cn> wrote:
> pinmux_generic_get_function() can return NULL and the pointer 'function'
> was dereferenced without checking against NULL. Add checking of pointer
> 'function' in pcs_get_function().
>
> Found by code review.
>
> Cc: stable at vger.kernel.org
> Fixes: 571aec4df5b7 ("pinctrl: single: Use generic pinmux helpers for managing functions")
> Signed-off-by: Ma Ke <make24 at iscas.ac.cn>
Patch applied.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list