projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TTY: serial, stop accessing potential NULLs
[cascardo/linux.git]
/
drivers
/
tty
/
serial
/
sunzilog.c
diff --git
a/drivers/tty/serial/sunzilog.c
b/drivers/tty/serial/sunzilog.c
index
27669ff
..
813ef8e
100644
(file)
--- a/
drivers/tty/serial/sunzilog.c
+++ b/
drivers/tty/serial/sunzilog.c
@@
-388,7
+388,7
@@
sunzilog_receive_chars(struct uart_sunzilog_port *up,
else if (r1 & CRC_ERR)
flag = TTY_FRAME;
}
- if (uart_handle_sysrq_char(&up->port, ch))
+ if (uart_handle_sysrq_char(&up->port, ch)
|| !port
)
continue;
if (up->port.ignore_status_mask == 0xff ||