From: Honghui Zhang Date: Wed, 8 Jun 2016 09:50:44 +0000 (+0800) Subject: iommu/mediatek: Do not call of_node_put in mtk_iommu_of_xlate X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9fec79df898602f5a20c0ab489bf9780aa98185d;p=deliverable%2Flinux.git 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 Signed-off-by: Joerg Roedel --- 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) 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;