commit: 197887f03daecdb3ae21bafeb4155412abad3497
From: Joerg Roedel <[email protected]>
Date: Tue, 9 Apr 2013 21:14:08 +0200
Subject: iommu/amd: Properly initialize irq-table lock

Fixes a lockdep warning.

Cc: [email protected] # >= v3.7
Reviewed-by: Shuah Khan <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
---
 drivers/iommu/amd_iommu.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index b05599d..f42793d 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/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;
-- 
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to