iommu/mediatek: Do not call of_node_put in mtk_iommu_of_xlate
authorHonghui Zhang <honghui.zhang@mediatek.com>
Wed, 8 Jun 2016 09:50:44 +0000 (17:50 +0800)
committerJoerg 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

index c3043d8754e380ceaa763a944f603fe680ab827e..493bd3e0f8db17787e23397ae88e6ca4605fc47a 100644 (file)
@@ -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;
 
This page took 0.025001 seconds and 5 git commands to generate.