Skip to content

Commit

Permalink
iommu/vt-d: Return error code in domain_context_mapping_one()
Browse files Browse the repository at this point in the history
In 'commit <55d940430ab9> ("iommu/vt-d: Get rid of domain->iommu_lock")',
the error handling path is changed a little, which makes the function
always return 0.

This path fixes this.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Fixes: 55d9404 ('iommu/vt-d: Get rid of domain->iommu_lock')
Cc: stable@vger.kernel.org # v4.3+
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Wei Yang authored and Joerg Roedel committed Jul 14, 2016
1 parent 452014d commit 5c365d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ static int domain_context_mapping_one(struct dmar_domain *domain,
spin_unlock(&iommu->lock);
spin_unlock_irqrestore(&device_domain_lock, flags);

return 0;
return ret;
}

struct domain_context_mapping_data {
Expand Down

0 comments on commit 5c365d1

Please sign in to comment.