Skip to content

Commit

Permalink
Revert "iommu/exynos: add missing put_device() call in exynos_iommu_o…
Browse files Browse the repository at this point in the history
…f_xlate()"

This reverts commit d71a4d5.
  • Loading branch information
corsicanu committed Oct 15, 2020
1 parent 57f6557 commit 86b447c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/iommu/exynos-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1590,18 +1590,14 @@ static int exynos_iommu_of_xlate(struct device *master,
return -ENODEV;

data = platform_get_drvdata(sysmmu_pdev);
if (!data) {
put_device(&sysmmu_pdev->dev);
if (!data)
return -ENODEV;
}

sysmmu = data->sysmmu;
if (!owner) {
owner = kzalloc(sizeof(*owner), GFP_KERNEL);
if (!owner) {
put_device(&sysmmu->dev);
if (!owner)
return -ENOMEM;
}

INIT_LIST_HEAD(&owner->sysmmu_list);
INIT_LIST_HEAD(&owner->client);
Expand Down

0 comments on commit 86b447c

Please sign in to comment.