projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9adb959
)
of: iommu: Increment DT node refcount in of_iommu_set_ops()
author
Anup Patel
<
[email protected]
>
Wed, 27 Jan 2016 05:21:16 +0000
(10:51 +0530)
committer
Will Deacon
<
[email protected]
>
Thu, 18 Feb 2016 15:02:43 +0000
(15:02 +0000)
We are saving pointer to iommu DT node in of_iommu_set_ops()
hence we should increment DT node ref count.
Reviewed-by: Ray Jui <
[email protected]
>
Reviewed-by: Scott Branden <
[email protected]
>
Reviewed-by: Robin Murphy <
[email protected]
>
Signed-off-by: Anup Patel <
[email protected]
>
Signed-off-by: Will Deacon <
[email protected]
>
drivers/iommu/of_iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/of_iommu.c
b/drivers/iommu/of_iommu.c
index 60ba238090d92f3eed93de994d5fd7271a68b8ce..5fea665af99d1168cd8541746f45fa6e17e5a14c 100644
(file)
--- a/
drivers/iommu/of_iommu.c
+++ b/
drivers/iommu/of_iommu.c
@@
-110,6
+110,7
@@
void of_iommu_set_ops(struct device_node *np, struct iommu_ops *ops)
if (WARN_ON(!iommu))
return;
+ of_node_get(np);
INIT_LIST_HEAD(&iommu->list);
iommu->np = np;
iommu->ops = ops;