mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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>
This commit is contained in:
parent
ca8a8fabb1
commit
97e9230635
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ static void vmd_irq_disable(struct irq_data *data)
|
||||||
|
|
||||||
raw_spin_lock(&list_lock);
|
raw_spin_lock(&list_lock);
|
||||||
list_del_rcu(&vmdirq->node);
|
list_del_rcu(&vmdirq->node);
|
||||||
|
INIT_LIST_HEAD_RCU(&vmdirq->node);
|
||||||
raw_spin_unlock(&list_lock);
|
raw_spin_unlock(&list_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue