From: Russell King Date: Sat, 21 Jan 2006 22:54:06 +0000 (+0000) Subject: [SERIAL] Fix UPF_ flag usage with uart_info->flags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27ae7a7435634820e7f7e2b922d8119f79cfc6e4;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [SERIAL] Fix UPF_ flag usage with uart_info->flags 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 --- diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 90f681789a64..1a8cd0169c9a 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -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; }