Commit d01240b2 authored by clingfei's avatar clingfei Committed by Linus Walleij
Browse files

pinctrl: thead1520: Fix Null pointer dereference



pinmux_generic_get_function may return NULL, and its retval is
dereferenced without check, which will cause a NULL pointer
dereference.

Signed-off-by: default avatarclingfei <clf700383@gmail.com>
Reviewed-by: default avatarDrew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/20241003023307.2138695-1-clf700383@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 06783dc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment