When inserting a PCCARD a panic can occur if the PCCARD generate interrupts before the driver is loaded. 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); }
Responsible Changed From-To: freebsd-bugs->eadler I'll take it.
State Changed From-To: open->analyzed awaiting approval
State Changed From-To: analyzed->open needs more information, seems to be the wrong thing
On Wednesday 13 June 2012 07:43:28 eadler@freebsd.org wrote: > Synopsis: [pccard] [patch] Fix panic in pccard.c > > State-Changed-From-To: analyzed->open > State-Changed-By: eadler > State-Changed-When: Wed Jun 13 05:43:27 UTC 2012 > State-Changed-Why: > needs more information, seems to be the wrong thing > > http://www.freebsd.org/cgi/query-pr.cgi?pr=147127 I can try to reproduce using 9-stable. It might take some time. --HPS
Responsible Changed From-To: eadler->hselasky over to committer
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
A commit references this bug: Author: imp Date: Mon Jan 7 06:19:51 UTC 2019 New revision: 342843 URL: https://svnweb.freebsd.org/changeset/base/342843 Log: Fix a race between setting up the interrupt handler and it firing by setting the data prior to setting up the interrupt. Now we only set the cookie afterwards, and that (a) cannot be helpd and (b) isn't used in the ISR. PR: 147127 Submitted by: hps@ Changes: head/sys/dev/pccard/pccard.c
Fixed the race by setting the data before setting up the ISR. Please contact me if there are other, unanticipated issues relating to this. Forgot the MFC tag in my commit.