From e6499a90b72e2ec5537cbd696849ccd3ae9f729d Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Tue, 9 Apr 2013 21:14:08 +0200 Subject: [PATCH] --- yaml --- r: 373560 b: refs/heads/master c: 197887f03daecdb3ae21bafeb4155412abad3497 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/iommu/amd_iommu.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e1c356348840..c0f5b558c306 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0dfedd619442f3a64de4fcd8a735664d18e86ee7 +refs/heads/master: 197887f03daecdb3ae21bafeb4155412abad3497 diff --git a/trunk/drivers/iommu/amd_iommu.c b/trunk/drivers/iommu/amd_iommu.c index b05599dd2c43..f42793d1574d 100644 --- a/trunk/drivers/iommu/amd_iommu.c +++ b/trunk/drivers/iommu/amd_iommu.c @@ -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;