Commit b8df110fea555d5088bba67f446c2435104405be
1 parent
907a426179
Exists in
master
and in
7 other branches
[SPARC64]: Fix oops on runlevel change with serial console.
Incorrect uart_write_wakeup() calls cause reference to a NULL tty pointer in sunsab and sunzilog serial drivers. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 2 changed files with 2 additions and 4 deletions Side-by-side Diff
drivers/serial/sunsab.c
drivers/serial/sunzilog.c
... | ... | @@ -517,10 +517,9 @@ |
517 | 517 | if (up->port.info == NULL) |
518 | 518 | goto ack_tx_int; |
519 | 519 | xmit = &up->port.info->xmit; |
520 | - if (uart_circ_empty(xmit)) { | |
521 | - uart_write_wakeup(&up->port); | |
520 | + if (uart_circ_empty(xmit)) | |
522 | 521 | goto ack_tx_int; |
523 | - } | |
522 | + | |
524 | 523 | if (uart_tx_stopped(&up->port)) |
525 | 524 | goto ack_tx_int; |
526 | 525 |