]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/amd_iommu.c
iommu/amd: Properly initialize irq-table lock
[karo-tx-linux.git] / drivers / iommu / amd_iommu.c
index b05599dd2c435ac0c83e2d4490de1cca5f4ec1ca..f42793d1574d452df331463cc96baee0522382c5 100644 (file)
@@ -3930,6 +3930,9 @@ static struct irq_remap_table *get_irq_table(u16 devid, bool ioapic)
        if (!table)
                goto out;
 
+       /* Initialize table spin-lock */
+       spin_lock_init(&table->lock);
+
        if (ioapic)
                /* Keep the first 32 indexes free for IOAPIC interrupts */
                table->min_index = 32;