From owner-freebsd-bugs@FreeBSD.ORG Thu May 27 11:40:03 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D4A6106567F for ; Thu, 27 May 2010 11:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7DE4F8FC27 for ; Thu, 27 May 2010 11:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4RBe31v075221 for ; Thu, 27 May 2010 11:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4RBe3vY075220; Thu, 27 May 2010 11:40:03 GMT (envelope-from gnats) Resent-Date: Thu, 27 May 2010 11:40:03 GMT Resent-Message-Id: <201005271140.o4RBe3vY075220@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hans Petter Selasky Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2043106566C for ; Thu, 27 May 2010 11:38:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 3382E8FC18 for ; Thu, 27 May 2010 11:38:43 +0000 (UTC) Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1196229477 for FreeBSD-gnats-submit@freebsd.org; Thu, 27 May 2010 13:38:41 +0200 Message-Id: <201005271335.55559.hselasky@c2i.net> Date: Thu, 27 May 2010 13:35:55 +0200 From: Hans Petter Selasky To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: kern/147127: Panic in pccard.c X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 11:40:03 -0000 >Number: 147127 >Category: kern >Synopsis: Panic in pccard.c >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 27 11:40:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Hans Petter Selasky >Release: FreeBSD 9.0-CURRENT i386 >Organization: >Environment: >Description: When inserting a PCCARD a panic can occur if the PCCARD generate interrupts before the driver is loaded. >How-To-Repeat: >Fix: --- dev/pccard/pccard.c (revision 208027) +++ dev/pccard/pccard.c (local) @@ -1258,7 +1258,10 @@ pccard_intr(void *arg) { struct pccard_function *pf = (struct pccard_function*) arg; - + + if (pf->intr_handler == NULL) + return; /* can happen during PCCARD insertion */ + pf->intr_handler(pf->intr_handler_arg); } >Release-Note: >Audit-Trail: >Unformatted: