]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
iommu/arm: add missing return
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Thu, 30 May 2019 12:02:28 +0000 (15:02 +0300)
committerJulien Grall <julien.grall@arm.com>
Tue, 11 Jun 2019 15:11:50 +0000 (16:11 +0100)
In case iommu_ops have been already set, we should not update it.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/drivers/passthrough/arm/iommu.c

index 325997b19f6a3dad082ea7fcf96d74459776a5d1..213523373647be7ffd616d813c038104ccd1a319 100644 (file)
@@ -32,7 +32,10 @@ void __init iommu_set_ops(const struct iommu_ops *ops)
     BUG_ON(ops == NULL);
 
     if ( iommu_ops && iommu_ops != ops )
+    {
         printk("WARNING: Cannot set IOMMU ops, already set to a different value\n");
+        return;
+    }
 
     iommu_ops = ops;
 }