Skip to content

Commit

Permalink
iommu/tegra: smmu: Fix error initial value at domain_init
Browse files Browse the repository at this point in the history
err initial value should be -EAGAIN. Otherwise 2nd iteration always
fails in the case as[0] is occupied.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Hiroshi Doyu authored and Joerg Roedel committed Aug 3, 2012
1 parent d2453b2 commit d1d076f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1d076f

Please sign in to comment.