summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/lpt.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-01-26 20:58:05 +0000
committerjhb <jhb@FreeBSD.org>2009-01-26 20:58:05 +0000
commit311c01fa8a63519da123d5180f9318f10e4f6bc6 (patch)
treefb3f3e57f34e076b0c8cf74120cd574f08f767ad /sys/dev/ppbus/lpt.c
parentdfa58632b604250dd491a601728415db628a81dd (diff)
downloadFreeBSD-src-311c01fa8a63519da123d5180f9318f10e4f6bc6.zip
FreeBSD-src-311c01fa8a63519da123d5180f9318f10e4f6bc6.tar.gz
Don't unlock the parent ppc lock until after releasing the ppbus.
Submitted by: csjp
Diffstat (limited to 'sys/dev/ppbus/lpt.c')
-rw-r--r--sys/dev/ppbus/lpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c
index 4c88508..6da65f1 100644
--- a/sys/dev/ppbus/lpt.c
+++ b/sys/dev/ppbus/lpt.c
@@ -380,8 +380,8 @@ lpt_attach(device_t dev)
}
ppb_wctr(ppbus, LPC_NINIT);
- ppb_unlock(ppbus);
lpt_release_ppbus(dev);
+ ppb_unlock(ppbus);
/* declare our interrupt handler */
sc->sc_intr_resource = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
OpenPOWER on IntegriCloud