Re: free free irq and Oops on cat /proc/interrupts (2)
From: Sergey Vlasov
Date: Sat Sep 17 2005 - 12:58:47 EST
On Sat, 17 Sep 2005 19:20:45 +0400 Manu Abraham wrote:
> Can somebody give me a pointer as to what i am possibly doing wrong.
>
> The module loads fine..
> The module unloads fine.. But i get a "free free IRQ" on free_irq()..
You are not calling pci_enable_device() in your probe handler. You
MUST call this function, check for success, and only after that you
can use pdev->irq (recent kernels perform interrupt routing only after
the device is enabled, so the value of pdev->irq before the call to
pci_enable_device() may not be valid).
Attachment:
pgp00000.pgp
Description: PGP signature