提交 d1d076f1 编写于 作者: H Hiroshi Doyu 提交者: Joerg Roedel

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: NHiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 d2453b2c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册