From: Jiri Slaby Date: Thu, 15 Nov 2012 08:49:48 +0000 (+0100) Subject: TTY: isicom, stop using port->tty X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7342c59a44ad9e5f30baaa2de84830f40b9f06c0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git TTY: isicom, stop using port->tty Do not access unsafe port->tty pointer when we have a safe tty already. Use the safe one. Signed-off-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/isicom.c b/drivers/tty/isicom.c index d7492e183607..5f3ecbc2713e 100644 --- a/drivers/tty/isicom.c +++ b/drivers/tty/isicom.c @@ -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);