diff options
author | 2019-08-26 15:29:27 +0800 | |
---|---|---|
committer | 2019-09-04 12:43:55 +0200 | |
commit | 99038fe75afaef59e20417d593a9d618d3ea14e6 (patch) | |
tree | f36c428effce9da529eadb61e16d142977e5eece /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tty/serial: atmel: remove unneeded atmel_get_lines_status function (diff) | |
download | linux-dev-99038fe75afaef59e20417d593a9d618d3ea14e6.tar.xz linux-dev-99038fe75afaef59e20417d593a9d618d3ea14e6.zip |
serial: sprd: check the right port and membase
When calling sprd_console_setup(), sprd_uart_port probably is NULL,
we should check that first instead of checking its items directly.
Also we should check membase to avoid accessing uart device before
its initialization finished.
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Tested-by: Baolin Wang <baolin.wang@linaro.org>
Link: https://lore.kernel.org/r/20190826072929.7696-2-zhang.lyra@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions