CONTRIBUTING, free pci irq to prevent panic on reinsert

This commit is contained in:
Ciro Santilli
2017-06-24 03:58:58 +01:00
parent e6efcefa16
commit 82f34ea2e0
2 changed files with 6 additions and 0 deletions

View File

@@ -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);
}