We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6613476 commit dec529bCopy full SHA for dec529b
drivers/pci/switch/switchtec.c
@@ -1672,7 +1672,7 @@ static int switchtec_pci_probe(struct pci_dev *pdev,
1672
rc = switchtec_init_isr(stdev);
1673
if (rc) {
1674
dev_err(&stdev->dev, "failed to init isr.\n");
1675
- goto err_put;
+ goto err_exit_pci;
1676
}
1677
1678
iowrite32(SWITCHTEC_EVENT_CLEAR |
@@ -1693,6 +1693,8 @@ static int switchtec_pci_probe(struct pci_dev *pdev,
1693
1694
err_devadd:
1695
stdev_kill(stdev);
1696
+err_exit_pci:
1697
+ switchtec_exit_pci(stdev);
1698
err_put:
1699
ida_free(&switchtec_minor_ida, MINOR(stdev->dev.devt));
1700
put_device(&stdev->dev);
0 commit comments