aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-sqlite-report
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-05-05 20:46:21 +0800
committerGreg Kroah-Hartman <[email protected]>2022-05-05 22:58:36 +0200
commit447ee1516f19f534a228dda237eddb202f23e163 (patch)
tree0704920d093e635b5fc95643e915ef55d95dbbca /tools/perf/scripts/python/bin/export-to-sqlite-report
parent672c0c5173427e6b3e2a9bbb7be51ceeec78093a (diff)
tty/serial: digicolor: fix possible null-ptr-deref in digicolor_uart_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: 5930cb3511df ("serial: driver for Conexant Digicolor USART") Signed-off-by: Yang Yingliang <[email protected]> Reviewed-by: Baruch Siach <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions