aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/isicom.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-11-15 03:49:48 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-15 20:18:55 -0500
commit7342c59a44ad9e5f30baaa2de84830f40b9f06c0 (patch)
tree57cb023fce5ab3da54bea7a1d00c3aeb4f5220b6 /drivers/tty/isicom.c
parent2dff8ad92661b6c99e9ba8b5918e43b522551556 (diff)
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 <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/isicom.c')
-rw-r--r--drivers/tty/isicom.c2
1 files changed, 1 insertions, 1 deletions
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)
603 if (tty_port_cts_enabled(&port->port)) { 603 if (tty_port_cts_enabled(&port->port)) {
604 if (tty->hw_stopped) { 604 if (tty->hw_stopped) {
605 if (header & ISI_CTS) { 605 if (header & ISI_CTS) {
606 port->port.tty->hw_stopped = 0; 606 tty->hw_stopped = 0;
607 /* start tx ing */ 607 /* start tx ing */
608 port->status |= (ISI_TXOK 608 port->status |= (ISI_TXOK
609 | ISI_CTS); 609 | ISI_CTS);