iommu/vt-d: Return error code in domain_context_mapping_one()
[firefly-linux-kernel-4.4.55.git] / drivers / iommu / intel-iommu.c
index 6763a4dfed94ee4430b059e7b0742f383086dade..24d81308a1a6ac9b73cd6365f5db6d2324afc97b 100644 (file)
@@ -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 {