diff options
author | Joerg Roedel <joro@8bytes.org> | 2013-04-09 21:14:08 +0200 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-04-18 17:21:28 +0200 |
commit | 197887f03daecdb3ae21bafeb4155412abad3497 (patch) | |
tree | 951fa773dffe67f60ca3051003144966031c1bbd | |
parent | 0dfedd619442f3a64de4fcd8a735664d18e86ee7 (diff) |
iommu/amd: Properly initialize irq-table lock
Fixes a lockdep warning.
Cc: stable@vger.kernel.org # >= v3.7
Reviewed-by: Shuah Khan <shuahkhan@gmail.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
-rw-r--r-- | drivers/iommu/amd_iommu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index b05599dd2c43..f42793d1574d 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; |