Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274153
b: refs/heads/master
c: 7a19081
h: refs/heads/master
i:
  274151: a5c7b5d
v: v3
  • Loading branch information
Julia Lawall authored and Benjamin Herrenschmidt committed Sep 19, 2011
1 parent fc28fae commit 9aeabfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 6dece0eb69b2a28e18d104bc5d707f1cb673f5e0
refs/heads/master: 7a19081fc2658157a1b84e6f3288450c33d98569
7 changes: 5 additions & 2 deletions trunk/arch/powerpc/platforms/pseries/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,14 +939,14 @@ static u64 enable_ddw(struct pci_dev *dev, struct device_node *pdn)
if (ret) {
dev_info(&dev->dev, "failed to map direct window for %s: %d\n",
dn->full_name, ret);
goto out_clear_window;
goto out_free_window;
}

ret = prom_add_property(pdn, win64);
if (ret) {
dev_err(&dev->dev, "unable to add dma window property for %s: %d",
pdn->full_name, ret);
goto out_clear_window;
goto out_free_window;
}

window->device = pdn;
Expand All @@ -958,6 +958,9 @@ static u64 enable_ddw(struct pci_dev *dev, struct device_node *pdn)
dma_addr = of_read_number(&create.addr_hi, 2);
goto out_unlock;

out_free_window:
kfree(window);

out_clear_window:
remove_ddw(pdn);

Expand Down

0 comments on commit 9aeabfb

Please sign in to comment.