Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 197887f0 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu/amd: Properly initialize irq-table lock



Fixes a lockdep warning.

Cc: stable@vger.kernel.org # >= v3.7
Reviewed-by: default avatarShuah Khan <shuahkhan@gmail.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent 0dfedd61
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;