diff options
author | 2024-10-16 16:56:55 +0100 | |
---|---|---|
committer | 2024-10-16 21:30:18 +0200 | |
commit | 05214b06ee832854bfae883de0522e3c48d4444b (patch) | |
tree | e73ade01c5ba2e686389c8a798276fa9544e3cee /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pinctrl: sophgo: fix typo in tristate of SG2002 (diff) | |
download | wireguard-linux-05214b06ee832854bfae883de0522e3c48d4444b.tar.xz wireguard-linux-05214b06ee832854bfae883de0522e3c48d4444b.zip |
pinctrl: th1520: Fix potential null pointer dereference on func
The initialization of muxtype deferences pointer func before func
is sanity checked with a null pointer check, hence we have a null
pointer deference issue. Fix this by only deferencing func with
the assignment to muxtype after func has been null pointer checked.
Fixes: 1fc30cd92770 ("pinctrl: th1520: Factor out casts")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reported-by: Kees Bakker <kees@ijzerbout.nl>
Acked-by: Drew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/20241016155655.334518-1-colin.i.king@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions