mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 00:10:09 +00:00
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>
This commit is contained in:
parent
2dff8ad926
commit
7342c59a44
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue