Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 13:08:14 -0800
From:      Sean Bruno <sean.bruno@dsl-only.net>
To:        freebsd-current@freebsd.org
Subject:   LPT Panic at assert lpt.c::222
Message-ID:  <1233004094.9302.0.camel@localhost.localdomain>

next in thread | raw e-mail | index | archive | help

--=-IFJfGB3IAPIkpKXeckZG
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Just tested today's -current and was greeted with a panic in PPBUS at an
assert.

The following patch seems to be appropriate.  Comments?

Sean

--=-IFJfGB3IAPIkpKXeckZG
Content-Disposition: attachment; filename="lpt.c.diff"
Content-Type: text/x-patch; name="lpt.c.diff"; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Index: lpt.c
===================================================================
--- lpt.c	(revision 187738)
+++ lpt.c	(working copy)
@@ -380,8 +380,8 @@
 	}
 
 	ppb_wctr(ppbus, LPC_NINIT);
+	lpt_release_ppbus(dev);
 	ppb_unlock(ppbus);
-	lpt_release_ppbus(dev);
 
 	/* declare our interrupt handler */
 	sc->sc_intr_resource = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,

--=-IFJfGB3IAPIkpKXeckZG--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1233004094.9302.0.camel>