]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/iommu/dmar.c
Merge branches 'pm-core', 'pm-qos', 'pm-domains' and 'pm-opp'
[linux.git] / drivers / iommu / dmar.c
index fc13146f8d16be7f1734dbcf720fbc9239a5eeae..d9c0decfc91ae2cef9ccf21c3a99afb455bbb9fa 100644 (file)
@@ -905,8 +905,10 @@ int __init detect_intel_iommu(void)
                x86_init.iommu.iommu_init = intel_iommu_init;
 #endif
 
-       acpi_put_table(dmar_tbl);
-       dmar_tbl = NULL;
+       if (dmar_tbl) {
+               acpi_put_table(dmar_tbl);
+               dmar_tbl = NULL;
+       }
        up_write(&dmar_global_lock);
 
        return ret ? 1 : -ENODEV;