Thread (2 messages) 2 messages, 2 authors, 2024-08-23

Re: [PATCH] pinctrl: single: fix potential NULL dereference in pcs_get_function()

From: Linus Walleij <hidden>
Date: 2024-08-23 16:05:44
Also in: linux-gpio, linux-omap, lkml, stable

On Thu, Aug 8, 2024 at 6:14 AM Ma Ke [off-list ref] 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@vger.kernel.org
Fixes: 571aec4df5b7 ("pinctrl: single: Use generic pinmux helpers for managing functions")
Signed-off-by: Ma Ke <redacted>
Patch applied.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help