projects
/
wrapfs-3.8.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffeae73
)
iommu/amd: Properly initialize irq-table lock
author
Joerg Roedel
<joro@8bytes.org>
Tue, 9 Apr 2013 19:14:08 +0000
(21:14 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 11 May 2013 20:53:51 +0000
(13:53 -0700)
commit
197887f03daecdb3ae21bafeb4155412abad3497
upstream.
Fixes a lockdep warning.
Reviewed-by: Shuah Khan <shuahkhan@gmail.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 4647b50b249ca2a0ab8abbbf5f58adff70ed037b..4c867f47b53c2d97069811bdf57e13d2e647850c 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-3948,6
+3948,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;