summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-04-29 16:26:37 +0800
committerGeert Uytterhoeven <geert+renesas@glider.be>2022-05-03 10:03:15 +0200
commit2f661477c2bb8068194dbba9738d05219f111c6e (patch)
tree576e64c203dc2c955e625b462e0eec21e6c3ee67 /tools/perf/scripts/python
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 <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20220429082637.1308182-2-yangyingliang@huawei.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions