iommu/vt-d: Return error code in domain_context_mapping_one()

commit 5c365d18a7 upstream.

In 'commit <55d940430a> ("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: 55d940430a ('iommu/vt-d: Get rid of domain->iommu_lock')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wei Yang 2016-07-13 13:53:21 +00:00 • committed by Greg Kroah-Hartman
commit 28a5f4cbb1