aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/cpus.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-04-29 16:26:37 +0800
committerGeert Uytterhoeven <[email protected]>2022-05-03 10:03:15 +0200
commit2f661477c2bb8068194dbba9738d05219f111c6e (patch)
tree576e64c203dc2c955e625b462e0eec21e6c3ee67 /scripts/gdb/linux/cpus.py
parent5376e3d904532e657fd7ca1a9b1ff3d351527b90 (diff)
pinctrl: renesas: rzn1: Fix possible null-ptr-deref in sh_pfc_map_resources()
It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions