Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-05-21 07:57:35 +0200
committerJiri Slaby <jslaby@suse.cz>2019-05-21 07:57:35 +0200
commit31a5827b095c830e6559407b8e1df8c80164cc91 (patch)
treebfaa3e93fe7d2ba989cbfad373803c146a650fe6
parent98cf72338d661a6cf71c3785726130a704f3b16d (diff)
Refresh
patches.drivers/serial-fix-race-between-flush_to_ldisc-and-tty_open.patch. Fix misapplied hunk. The second hunk should have been in uart_unthrottle. suse-commit: 2e69a777ee01bf6527dc75a05394d45ed8ff5081
-rw-r--r--drivers/tty/serial/serial_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index 923e2822109f..9d4652def97d 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -722,6 +722,9 @@ static void uart_unthrottle(struct tty_struct *tty)
struct uart_port *port;
upstat_t mask = 0;
+ if (!state)
+ return;
+
port = uart_port_ref(state);
if (!port)
return;
@@ -2406,9 +2409,6 @@ static void uart_poll_put_char(struct tty_driver *driver, int line, char ch)
struct uart_state *state = drv->state + line;
struct uart_port *port;
- if (!state)
- return;
-
port = uart_port_ref(state);
if (!port)
return;