diff options
author | Honghui Zhang <honghui.zhang@mediatek.com> | 2016-06-08 05:50:44 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-06-21 05:36:19 -0400 |
commit | 9fec79df898602f5a20c0ab489bf9780aa98185d (patch) | |
tree | 301648e62a8b9564c6b1db7c1753bc4bb61480d7 /drivers/iommu/mtk_iommu.c | |
parent | 5edb56491d4812c42175980759da53388e5d86f5 (diff) |
iommu/mediatek: Do not call of_node_put in mtk_iommu_of_xlate
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>
Diffstat (limited to 'drivers/iommu/mtk_iommu.c')
-rw-r--r-- | drivers/iommu/mtk_iommu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index c3043d8754e3..493bd3e0f8db 100644 --- 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) | |||
455 | if (!dev->archdata.iommu) { | 455 | if (!dev->archdata.iommu) { |
456 | /* Get the m4u device */ | 456 | /* Get the m4u device */ |
457 | m4updev = of_find_device_by_node(args->np); | 457 | m4updev = of_find_device_by_node(args->np); |
458 | of_node_put(args->np); | ||
459 | if (WARN_ON(!m4updev)) | 458 | if (WARN_ON(!m4updev)) |
460 | return -EINVAL; | 459 | return -EINVAL; |
461 | 460 | ||