Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48552
b: refs/heads/master
c: fb4d64e
h: refs/heads/master
v: v3
  • Loading branch information
Frederik Deweerdt authored and Linus Torvalds committed Feb 16, 2007
1 parent e915ff1 commit 00a068e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5de611148c8370cbe50796ca5567ca624b99686
refs/heads/master: fb4d64e78ceab77cf20f7796f74aa10ebe862032
8 changes: 4 additions & 4 deletions trunk/lib/devres.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,21 +274,21 @@ int pcim_iomap_regions(struct pci_dev *pdev, u16 mask, const char *name)

rc = pci_request_region(pdev, i, name);
if (rc)
goto err_region;
goto err_inval;

rc = -ENOMEM;
if (!pcim_iomap(pdev, i, 0))
goto err_iomap;
goto err_region;
}

return 0;

err_iomap:
pcim_iounmap(pdev, iomap[i]);
err_region:
pci_release_region(pdev, i);
err_inval:
while (--i >= 0) {
if (!(mask & (1 << i)))
continue;
pcim_iounmap(pdev, iomap[i]);
pci_release_region(pdev, i);
}
Expand Down

0 comments on commit 00a068e

Please sign in to comment.