On Thu, Aug 8, 2024 at 6:14 AM Ma Ke <make24@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxx > Fixes: 571aec4df5b7 ("pinctrl: single: Use generic pinmux helpers for managing functions") > Signed-off-by: Ma Ke <make24@xxxxxxxxxxx> Patch applied. Yours, Linus Walleij