Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1d076f1 authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Joerg Roedel
Browse files

iommu/tegra: smmu: Fix error initial value at domain_init



err initial value should be -EAGAIN. Otherwise 2nd iteration always
fails in the case as[0] is occupied.

Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent d2453b2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -806,7 +806,7 @@ static void smmu_iommu_detach_dev(struct iommu_domain *domain,

static int smmu_iommu_domain_init(struct iommu_domain *domain)
{
	int i, err = -ENODEV;
	int i, err = -EAGAIN;
	unsigned long flags;
	struct smmu_as *as;
	struct smmu_device *smmu = smmu_handle;