mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
CONTRIBUTING, free pci irq to prevent panic on reinsert
This commit is contained in:
5
CONTRIBUTING.md
Normal file
5
CONTRIBUTING.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# CONTRIBUTING
|
||||||
|
|
||||||
|
Testing you should do before pushing:
|
||||||
|
|
||||||
|
- `/insrm.sh module 5`. Helps catch simple insert remove problems.
|
||||||
@@ -224,6 +224,7 @@ error:
|
|||||||
static void pci_remove(struct pci_dev *dev)
|
static void pci_remove(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
pr_info("pci_remove\n");
|
pr_info("pci_remove\n");
|
||||||
|
free_irq(pci_irq, &major);
|
||||||
pci_release_region(dev, BAR);
|
pci_release_region(dev, BAR);
|
||||||
unregister_chrdev(major, CDEV_NAME);
|
unregister_chrdev(major, CDEV_NAME);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user