Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286236
b: refs/heads/master
c: 0ee5a7d
h: refs/heads/master
v: v3
  • Loading branch information
Shane Michael Matthews authored and Matthew Wilcox committed Nov 4, 2011
1 parent 8449a19 commit 2957a89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f85d50b609e8a5ef151656210203a6e94c19538
refs/heads/master: 0ee5a7d7cb9309bd393a25c395f19fb12a842602
5 changes: 5 additions & 0 deletions trunk/drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,9 @@ static int __devinit nvme_probe(struct pci_dev *pdev,
if (!dev->queues)
goto free;

if (pci_enable_device_mem(pdev))
goto free;

INIT_LIST_HEAD(&dev->namespaces);
dev->pci_dev = pdev;
pci_set_drvdata(pdev, dev);
Expand Down Expand Up @@ -1133,6 +1136,7 @@ static int __devinit nvme_probe(struct pci_dev *pdev,
disable:
pci_disable_msix(pdev);
nvme_release_instance(dev);
pci_disable_device(pdev);
free:
kfree(dev->queues);
kfree(dev->entry);
Expand All @@ -1147,6 +1151,7 @@ static void __devexit nvme_remove(struct pci_dev *pdev)
pci_disable_msix(pdev);
iounmap(dev->bar);
nvme_release_instance(dev);
pci_disable_device(pdev);
kfree(dev->queues);
kfree(dev->entry);
kfree(dev);
Expand Down

0 comments on commit 2957a89

Please sign in to comment.