diff options
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 86789b0477c5..00047f3c7293 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -805,12 +805,13 @@ static void pl2303_process_read_urb(struct urb *urb) | |||
805 | 805 | ||
806 | /* overrun is special, not associated with a char */ | 806 | /* overrun is special, not associated with a char */ |
807 | if (line_status & UART_OVERRUN_ERROR) | 807 | if (line_status & UART_OVERRUN_ERROR) |
808 | tty_insert_flip_char(tty, 0, TTY_OVERRUN); | 808 | tty_insert_flip_char(&port->port, 0, TTY_OVERRUN); |
809 | 809 | ||
810 | if (port->port.console && port->sysrq) { | 810 | if (port->port.console && port->sysrq) { |
811 | for (i = 0; i < urb->actual_length; ++i) | 811 | for (i = 0; i < urb->actual_length; ++i) |
812 | if (!usb_serial_handle_sysrq_char(port, data[i])) | 812 | if (!usb_serial_handle_sysrq_char(port, data[i])) |
813 | tty_insert_flip_char(tty, data[i], tty_flag); | 813 | tty_insert_flip_char(&port->port, data[i], |
814 | tty_flag); | ||
814 | } else { | 815 | } else { |
815 | tty_insert_flip_string_fixed_flag(&port->port, data, tty_flag, | 816 | tty_insert_flip_string_fixed_flag(&port->port, data, tty_flag, |
816 | urb->actual_length); | 817 | urb->actual_length); |