diff options
-rw-r--r-- | drivers/net/usb/hso.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 031d07b105af..94a27f764e6b 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -1467,7 +1467,8 @@ static void hso_std_serial_write_bulk_callback(struct urb *urb) | |||
1467 | return; | 1467 | return; |
1468 | } | 1468 | } |
1469 | hso_put_activity(serial->parent); | 1469 | hso_put_activity(serial->parent); |
1470 | tty_wakeup(serial->tty); | 1470 | if (serial->tty) |
1471 | tty_wakeup(serial->tty); | ||
1471 | hso_kick_transmit(serial); | 1472 | hso_kick_transmit(serial); |
1472 | 1473 | ||
1473 | D1(" "); | 1474 | D1(" "); |
@@ -1538,7 +1539,8 @@ static void ctrl_callback(struct urb *urb) | |||
1538 | clear_bit(HSO_SERIAL_FLAG_RX_SENT, &serial->flags); | 1539 | clear_bit(HSO_SERIAL_FLAG_RX_SENT, &serial->flags); |
1539 | } else { | 1540 | } else { |
1540 | hso_put_activity(serial->parent); | 1541 | hso_put_activity(serial->parent); |
1541 | tty_wakeup(serial->tty); | 1542 | if (serial->tty) |
1543 | tty_wakeup(serial->tty); | ||
1542 | /* response to a write command */ | 1544 | /* response to a write command */ |
1543 | hso_kick_transmit(serial); | 1545 | hso_kick_transmit(serial); |
1544 | } | 1546 | } |