diff options
-rw-r--r-- | drivers/usb/serial/generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 9fccc26235a2..8dabac1929b0 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
@@ -528,7 +528,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty) | |||
528 | 528 | ||
529 | int usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch) | 529 | int usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch) |
530 | { | 530 | { |
531 | if (port->sysrq) { | 531 | if (port->sysrq && port->console) { |
532 | if (ch && time_before(jiffies, port->sysrq)) { | 532 | if (ch && time_before(jiffies, port->sysrq)) { |
533 | handle_sysrq(ch, tty_port_tty_get(&port->port)); | 533 | handle_sysrq(ch, tty_port_tty_get(&port->port)); |
534 | port->sysrq = 0; | 534 | port->sysrq = 0; |