diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2012-07-30 08:39:19 +0300 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-08-03 16:04:44 +0200 |
commit | d1d076f16376066d0a51aa7d465f43059da71562 (patch) | |
tree | 37ed1def751527ef4545d173e8a987b559a5212c /drivers/iommu | |
parent | d2453b2c7875dac9b323bff5d21981c41de177b1 (diff) | |
download | op-kernel-dev-d1d076f16376066d0a51aa7d465f43059da71562.zip op-kernel-dev-d1d076f16376066d0a51aa7d465f43059da71562.tar.gz |
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: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 37669cc..2a4bb36 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -806,7 +806,7 @@ out: 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; |