Skip to content

Commit

Permalink
[SERIAL] Fix UPF_ flag usage with uart_info->flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Russell King committed Jan 21, 2006
1 parent 747c8a5 commit 27ae7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/serial_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 27ae7a7

Please sign in to comment.