From: Martin Michlmayr Date: Tue, 7 Mar 2006 21:04:59 +0000 (+0000) Subject: [SERIAL] ip22zilog: Fix oops on runlevel change with serial console X-Git-Tag: v2.6.16-rc6~81^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4432c41b0c74d770ebc5e0a4fc3df3d00dfc131;p=linux-2.6 [SERIAL] ip22zilog: Fix oops on runlevel change with serial console Incorrect uart_write_wakeup() calls cause reference to a NULL tty pointer. This has been fixed in the sunsab and sunzilog serial drivers in October 2005. Update the ip22zilog, which is based on sunzilog, accordingly. Signed-off-by: Martin Michlmayr Signed-off-by: Russell King port.info == NULL) goto ack_tx_int; xmit = &up->port.info->xmit; - if (uart_circ_empty(xmit)) { - uart_write_wakeup(&up->port); + if (uart_circ_empty(xmit)) goto ack_tx_int; - } if (uart_tx_stopped(&up->port)) goto ack_tx_int;