TTY: isicom, stop using port->tty
authorJiri Slaby <jslaby@suse.cz>
Thu, 15 Nov 2012 08:49:48 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 01:18:55 +0000 (17:18 -0800)
Do not access unsafe port->tty pointer when we have a safe tty
already. Use the safe one.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/isicom.c

index d7492e18360768c683c86b4359c6173d8ae1310f..5f3ecbc2713e03bb1b7a7c748a66d0a2ed44be3c 100644 (file)
@@ -603,7 +603,7 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id)
                        if (tty_port_cts_enabled(&port->port)) {
                                if (tty->hw_stopped) {
                                        if (header & ISI_CTS) {
-                                               port->port.tty->hw_stopped = 0;
+                                               tty->hw_stopped = 0;
                                                /* start tx ing */
                                                port->status |= (ISI_TXOK
                                                        | ISI_CTS);