Date: Thu, 27 May 2010 13:35:55 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/147127: Panic in pccard.c Message-ID: <201005271335.55559.hselasky@c2i.net> Resent-Message-ID: <201005271140.o4RBe3vY075220@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005271335.55559.hselasky>