diff options
| author | 2022-04-29 16:26:37 +0800 | |
|---|---|---|
| committer | 2022-05-03 10:03:15 +0200 | |
| commit | 2f661477c2bb8068194dbba9738d05219f111c6e (patch) | |
| tree | 576e64c203dc2c955e625b462e0eec21e6c3ee67 /include/uapi/linux | |
| parent | pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources() (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 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
