aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/pl2303.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index e02dc3d643c7..6357b57f628c 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -927,6 +927,8 @@ static void pl2303_update_line_status(struct usb_serial_port *port,
927 spin_lock_irqsave(&priv->lock, flags); 927 spin_lock_irqsave(&priv->lock, flags);
928 priv->line_status = data[status_idx]; 928 priv->line_status = data[status_idx];
929 spin_unlock_irqrestore(&priv->lock, flags); 929 spin_unlock_irqrestore(&priv->lock, flags);
930 if (priv->line_status & UART_BREAK_ERROR)
931 usb_serial_handle_break(port);
930 wake_up_interruptible(&priv->delta_msr_wait); 932 wake_up_interruptible(&priv->delta_msr_wait);
931} 933}
932 934
@@ -1037,7 +1039,8 @@ static void pl2303_read_bulk_callback(struct urb *urb)
1037 if (line_status & UART_OVERRUN_ERROR) 1039 if (line_status & UART_OVERRUN_ERROR)
1038 tty_insert_flip_char(tty, 0, TTY_OVERRUN); 1040 tty_insert_flip_char(tty, 0, TTY_OVERRUN);
1039 for (i = 0; i < urb->actual_length; ++i) 1041 for (i = 0; i < urb->actual_length; ++i)
1040 tty_insert_flip_char(tty, data[i], tty_flag); 1042 if (!usb_serial_handle_sysrq_char(port, data[i]))
1043 tty_insert_flip_char(tty, data[i], tty_flag);
1041 tty_flip_buffer_push(tty); 1044 tty_flip_buffer_push(tty);
1042 } 1045 }
1043 tty_kref_put(tty); 1046 tty_kref_put(tty);