Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 835e5f3960e37932c4b6a223ee539502 > files > 2

dkms-hso-1.2-2mdv2009.0.src.rpm

diff -p -up dkms-hso-1.2/hso.c.tty_oops dkms-hso-1.2/hso.c
--- dkms-hso-1.2/hso.c.tty_oops	2008-05-23 19:57:38.000000000 +0200
+++ dkms-hso-1.2/hso.c	2008-05-23 19:59:00.000000000 +0200
@@ -1467,7 +1467,8 @@ static void hso_std_serial_write_bulk_ca
 		return;
 	}
 	hso_put_activity(serial->parent);
-	tty_wakeup(serial->tty);
+	if (serial->tty)
+		tty_wakeup(serial->tty);
 	hso_kick_transmit(serial);
 
 	D1(" ");
@@ -1538,7 +1539,8 @@ static void ctrl_callback(struct urb *ur
 			clear_bit(HSO_SERIAL_FLAG_RX_SENT, &serial->flags);
 	} else {
 		hso_put_activity(serial->parent);
-		tty_wakeup(serial->tty);
+		if (serial->tty)
+			tty_wakeup(serial->tty);
 		/* response to a write command */
 		hso_kick_transmit(serial);
 	}