diff options
author | Joerg Roedel <joro@8bytes.org> | 2013-04-09 15:14:08 -0400 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-04-18 11:21:28 -0400 |
commit | 197887f03daecdb3ae21bafeb4155412abad3497 (patch) | |
tree | 951fa773dffe67f60ca3051003144966031c1bbd /drivers/iommu/amd_iommu.c | |
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>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-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) | |||
3930 | if (!table) | 3930 | if (!table) |
3931 | goto out; | 3931 | goto out; |
3932 | 3932 | ||
3933 | /* Initialize table spin-lock */ | ||
3934 | spin_lock_init(&table->lock); | ||
3935 | |||
3933 | if (ioapic) | 3936 | if (ioapic) |
3934 | /* Keep the first 32 indexes free for IOAPIC interrupts */ | 3937 | /* Keep the first 32 indexes free for IOAPIC interrupts */ |
3935 | table->min_index = 32; | 3938 | table->min_index = 32; |