[PATCH] Panic when inserting PCCARD

From: Hans Petter Selasky <hselasky_at_freebsd.org>
Date: Wed, 18 Nov 2009 20:59:33 +0100
Hi,

I am sometimes using a PCCARD which panics the FreeBSD 9-current kernel due to 
generating some interrupts immediately when plugged in. Can someone add the 
required checks to handle spurious interrupts on non-enabled IRQ vectors?

Backtrace:

pccard_intr()
cbb_func_intr()
intr_event_execute_handlers()

--HPS

sys/dev/pccard/pccard.c

static void
pccard_intr(void *arg)
{
        struct pccard_function *pf = (struct pccard_function*) arg;

+       if (pf == NULL || pf->intr_handler == NULL) return;
        pf->intr_handler(pf->intr_handler_arg); 
}
Received on Wed Nov 18 2009 - 18:58:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC