Skip to content

Commit 97e9230

Browse files
Keith Buschbjorn-helgaas
authored andcommitted
x86/PCI: VMD: Initialize list item in IRQ disable
Multiple calls to disable an IRQ would have caused the driver to dereference a poisoned list item. This re-initializes the list to allow multiple requests to disable the IRQ. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by Jon Derrick: <jonathan.derrick@intel.com>
1 parent ca8a8fa commit 97e9230

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/pci/vmd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ static void vmd_irq_disable(struct irq_data *data)
135135

136136
raw_spin_lock(&list_lock);
137137
list_del_rcu(&vmdirq->node);
138+
INIT_LIST_HEAD_RCU(&vmdirq->node);
138139
raw_spin_unlock(&list_lock);
139140
}
140141

0 commit comments

Comments
 (0)