Skip to content

Commit 9fec79d

Browse files
Honghui Zhangjoergroedel
authored andcommitted
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 <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 5edb564 commit 9fec79d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/iommu/mtk_iommu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ static int mtk_iommu_of_xlate(struct device *dev, struct of_phandle_args *args)
455455
if (!dev->archdata.iommu) {
456456
/* Get the m4u device */
457457
m4updev = of_find_device_by_node(args->np);
458-
of_node_put(args->np);
459458
if (WARN_ON(!m4updev))
460459
return -EINVAL;
461460

0 commit comments

Comments
 (0)