request_irq/free_irq trouble

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All !
In my 2.6 kernel module I have a very simple code that in open method calls
ret = request_irq(pdev->irq, ppcnet_intr, SA_SHIRQ, DRIVER_NAME, dev);
assert(ret != 0);
and in release method calls
free_irq(pdev->irq, ppcnet_intr);
But after release method I see something like this in dmesg output:
Trying to free free IRQ8.
and after unloading module I see kernel oops and then when trying to
$ cat /proc/interrupts
I see just
Segmentation fault.

Where is my bug ? I would be happy to hear any tips or suggestions how to find 
and fix it.

-- 
          Vladimir

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux