iommu/vt-d: Return error code in domain_context_mapping_one()
authorWei Yang <richard.weiyang@gmail.com>
Wed, 13 Jul 2016 13:53:21 +0000 (13:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:09:21 +0000 (18:09 +0200)
commit28a5f4cbb18b86ad40be5da53263bc1704dbdb6f
tree54f899b4bad4292d42b12a2c7ba3843f4c31ecfb
parentbd78d819b4abaf1b471ea6da8b440730d24ac897
iommu/vt-d: Return error code in domain_context_mapping_one()

commit 5c365d18a73d3979db37006eaacefc0008869c0f upstream.

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: 55d940430ab9 ('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>
drivers/iommu/intel-iommu.c