diff options
author | Yang Yingliang <[email protected]> | 2022-04-26 11:08:57 +0800 |
---|---|---|
committer | Lee Jones <[email protected]> | 2022-05-23 14:52:45 +0100 |
commit | 311242c7703df0da14c206260b7e855f69cb0264 (patch) | |
tree | d1466e995752fc98fedf89d91222386d49d2a8d1 /scripts/gdb/linux/timerlist.py | |
parent | eeb0a442da2fbf9617e9f934026958f782b1beef (diff) |
mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()
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.
Fixes: b5e29aa880be ("mfd: davinci_voicecodec: Remove pointless #include")
Signed-off-by: Yang Yingliang <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions