]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: thead1520: Fix Null pointer dereference
authorclingfei <clf700383@gmail.com>
Thu, 3 Oct 2024 02:33:07 +0000 (10:33 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 3 Oct 2024 14:07:12 +0000 (16:07 +0200)
commitd01240b22abf28ce32660c22458457f9b7f5dc1e
treee845ff304d50aaf525004b347f2ecd90d0e7c8dc
parent06783dc52057045edd9cfcdd8f90899d04bc8678
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: clingfei <clf700383@gmail.com>
Reviewed-by: Drew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/20241003023307.2138695-1-clf700383@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-th1520.c