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:
@@ -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