From: Keith Busch Date: Tue, 17 May 2016 17:22:18 +0000 (-0600) Subject: x86/PCI: VMD: Initialize list item in IRQ disable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97e923063575;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Bjorn Helgaas Acked-by Jon Derrick: --- diff --git a/arch/x86/pci/vmd.c b/arch/x86/pci/vmd.c index b1662bf17937..3519a1578752 100644 --- a/arch/x86/pci/vmd.c +++ b/arch/x86/pci/vmd.c @@ -135,6 +135,7 @@ static void vmd_irq_disable(struct irq_data *data) raw_spin_lock(&list_lock); list_del_rcu(&vmdirq->node); + INIT_LIST_HEAD_RCU(&vmdirq->node); raw_spin_unlock(&list_lock); }