diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-04-21 04:26:59 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-06-15 15:19:57 +0200 |
commit | 84a85d3fef2e75b1fe9fc2af6f5267122555a1ed (patch) | |
tree | d7dcfdddda38fe4c3e566772ec9fd6082d4e651e /arch/m68k/mvme147 | |
parent | Linux 5.19-rc1 (diff) | |
download | linux-84a85d3fef2e75b1fe9fc2af6f5267122555a1ed.tar.xz linux-84a85d3fef2e75b1fe9fc2af6f5267122555a1ed.zip |
pinctrl: aspeed: Fix potential NULL dereference in aspeed_pinmux_set_mux()
pdesc could be null but still dereference pdesc->name and it will lead to
a null pointer access. So we move a null check before dereference.
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1650508019-22554-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/m68k/mvme147')
0 files changed, 0 insertions, 0 deletions