mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +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)
|
||||
{
|
||||
pr_info("pci_remove\n");
|
||||
free_irq(pci_irq, &major);
|
||||
pci_release_region(dev, BAR);
|
||||
unregister_chrdev(major, CDEV_NAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user