svn commit: r187740 - head/sys/dev/ppbus

John Baldwin jhb at FreeBSD.org
Mon Jan 26 12:58:10 PST 2009


Author: jhb
Date: Mon Jan 26 20:58:05 2009
New Revision: 187740
URL: http://svn.freebsd.org/changeset/base/187740

Log:
  Don't unlock the parent ppc lock until after releasing the ppbus.
  
  Submitted by:	csjp

Modified:
  head/sys/dev/ppbus/lpt.c

Modified: head/sys/dev/ppbus/lpt.c
==============================================================================
--- head/sys/dev/ppbus/lpt.c	Mon Jan 26 20:24:04 2009	(r187739)
+++ head/sys/dev/ppbus/lpt.c	Mon Jan 26 20:58:05 2009	(r187740)
@@ -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,


More information about the svn-src-all mailing list