From: Wei Yang Date: Wed, 13 Jul 2016 13:53:21 +0000 (+0000) Subject: iommu/vt-d: Return error code in domain_context_mapping_one() X-Git-Tag: firefly_0821_release~176^2~4^2~31^2~378 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=28a5f4cbb18b86ad40be5da53263bc1704dbdb6f;p=firefly-linux-kernel-4.4.55.git 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 Fixes: 55d940430ab9 ('iommu/vt-d: Get rid of domain->iommu_lock') Signed-off-by: Joerg Roedel Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 6763a4dfed94..24d81308a1a6 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -2032,7 +2032,7 @@ out_unlock: spin_unlock(&iommu->lock); spin_unlock_irqrestore(&device_domain_lock, flags); - return 0; + return ret; } struct domain_context_mapping_data {