patch-2.1.37 linux/drivers/char/esp.c

Next file: linux/drivers/char/fbmem.c
Previous file: linux/drivers/char/epca.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/char/esp.c linux/drivers/char/esp.c
@@ -689,7 +689,7 @@
 	if (!tty)
 		return;
 
-	if (clear_bit(ESP_EVENT_WRITE_WAKEUP, &info->event)) {
+	if (test_and_clear_bit(ESP_EVENT_WRITE_WAKEUP, &info->event)) {
 		if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
 		    tty->ldisc.write_wakeup)
 			(tty->ldisc.write_wakeup)(tty);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov