[SERIAL] Fix UPF_ flag usage with uart_info->flags
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 21 Jan 2006 22:54:06 +0000 (22:54 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Jan 2006 22:54:06 +0000 (22:54 +0000)
The previous change found a bug in the serial SAK handling - because
we were looking for UPF_SAK set in uart_info->flags, we would never
raise a SAK condition.  UPF_SAK is in uart_port->flags.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/linux/serial_core.h

index 90f681789a64b670dd2619ac9e9df6f4a2d67811..1a8cd0169c9a73642fae7240291e00dadaf7b77e 100644 (file)
@@ -430,7 +430,7 @@ static inline int uart_handle_break(struct uart_port *port)
                port->sysrq = 0;
        }
 #endif
-       if (info->flags & UPF_SAK)
+       if (port->flags & UPF_SAK)
                do_SAK(info->tty);
        return 0;
 }