From owner-freebsd-current@FreeBSD.ORG Mon Jan 26 20:19:25 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67C1C106568A for ; Mon, 26 Jan 2009 20:19:25 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: from iron2.pdx.net (iron2.pdx.net [69.64.224.71]) by mx1.freebsd.org (Postfix) with ESMTP id 299538FC1F for ; Mon, 26 Jan 2009 20:19:24 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: (qmail 26109 invoked from network); 26 Jan 2009 11:52:44 -0800 Received: from 069-064-235-060.pdx.net (HELO ?192.168.1.51?) (69.64.235.60) by iron2.pdx.net with SMTP; 26 Jan 2009 11:52:44 -0800 From: Sean Bruno To: freebsd-current@freebsd.org Content-Type: multipart/mixed; boundary="=-sYAgDJh8g3fdgxHVZjXu" Date: Mon, 26 Jan 2009 11:52:44 -0800 Message-Id: <1232999564.12827.17.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 (2.24.3-1.fc10) X-Mailman-Approved-At: Mon, 26 Jan 2009 20:54:58 +0000 Subject: LPT Panic at assert lpt.c::222 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 20:19:26 -0000 --=-sYAgDJh8g3fdgxHVZjXu 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 --=-sYAgDJh8g3fdgxHVZjXu 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, --=-sYAgDJh8g3fdgxHVZjXu--