summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>2000-02-08 21:46:27 +0000
committernsouch <nsouch@FreeBSD.org>2000-02-08 21:46:27 +0000
commit3c20573ee30a9b7aca921c92838679e927c4df9d (patch)
treeaa7f44f7b0da9a396bd063fa5b5a0f6f11ef9747 /sys/dev/ppbus
parente128d80bda493459e589bde221bba401386dc9a7 (diff)
downloadFreeBSD-src-3c20573ee30a9b7aca921c92838679e927c4df9d.zip
FreeBSD-src-3c20573ee30a9b7aca921c92838679e927c4df9d.tar.gz
Fix system hang when printer locks on missing paper
(also called the "printer fiasco") Approved by: jkh
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r--sys/dev/ppbus/lpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c
index 1c8aa00..d2c979c 100644
--- a/sys/dev/ppbus/lpt.c
+++ b/sys/dev/ppbus/lpt.c
@@ -865,12 +865,12 @@ lpt_intr(void *arg)
/*
* No more data waiting for printer.
- * Wakeup is not done if write call was interrupted.
+ * Wakeup is not done if write call was not interrupted.
*/
sc->sc_state &= ~OBUSY;
if(!(sc->sc_state & INTERRUPTED))
- wakeup((caddr_t)sc);
+ wakeup((caddr_t)lptdev);
lprintf(("w "));
return;
} else { /* check for error */
OpenPOWER on IntegriCloud