iommu/of: Take a ref to the IOMMU driver during ->of_xlate()
authorWill Deacon <will@kernel.org>
Thu, 19 Dec 2019 12:03:42 +0000 (12:03 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 23 Dec 2019 13:06:05 +0000 (14:06 +0100)
commit386dce2788eef626aaaa6a3ca32809ea7904581b
treedce51da68a4423561611270829eacf67e7ac4c09
parent25f003de987aed630db265ceae9cd978537a3f80
iommu/of: Take a ref to the IOMMU driver during ->of_xlate()

Ensure that we hold a reference to the IOMMU driver module while calling
the '->of_xlate()' callback during early device probing.

Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: John Garry <john.garry@huawei.com> # smmu v3
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/of_iommu.c