projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5edb564
)
iommu/mediatek: Do not call of_node_put in mtk_iommu_of_xlate
author
Honghui Zhang
<honghui.zhang@mediatek.com>
Wed, 8 Jun 2016 09:50:44 +0000
(17:50 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Tue, 21 Jun 2016 09:36:19 +0000
(11:36 +0200)
The device_node will be released in of_iommu_configure, it may be double
released if call of_node_put in mtk_iommu_of_xlate.
Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/mtk_iommu.c
b/drivers/iommu/mtk_iommu.c
index c3043d8754e380ceaa763a944f603fe680ab827e..493bd3e0f8db17787e23397ae88e6ca4605fc47a 100644
(file)
--- a/
drivers/iommu/mtk_iommu.c
+++ b/
drivers/iommu/mtk_iommu.c
@@
-455,7
+455,6
@@
static int mtk_iommu_of_xlate(struct device *dev, struct of_phandle_args *args)
if (!dev->archdata.iommu) {
/* Get the m4u device */
m4updev = of_find_device_by_node(args->np);
- of_node_put(args->np);
if (WARN_ON(!m4updev))
return -EINVAL;