Skip to content

Commit

Permalink
iommu/mediatek: Do not call of_node_put in mtk_iommu_of_xlate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Honghui Zhang authored and Joerg Roedel committed Jun 21, 2016
1 parent 5edb564 commit 9fec79d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/iommu/mtk_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9fec79d

Please sign in to comment.