소스 검색

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>
Jiri Slaby 12 년 전
부모
커밋
7342c59a44
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/tty/isicom.c

+ 1 - 1
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_port_cts_enabled(&port->port)) {
 				if (tty->hw_stopped) {
 				if (tty->hw_stopped) {
 					if (header & ISI_CTS) {
 					if (header & ISI_CTS) {
-						port->port.tty->hw_stopped = 0;
+						tty->hw_stopped = 0;
 						/* start tx ing */
 						/* start tx ing */
 						port->status |= (ISI_TXOK
 						port->status |= (ISI_TXOK
 							| ISI_CTS);
 							| ISI_CTS);