From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com ([134.134.136.65]:57592 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751526AbcEQRNt (ORCPT ); Tue, 17 May 2016 13:13:49 -0400 From: Keith Busch To: linux-pci@vger.kernel.org, Bjorn Helgaas Cc: Jon Derrick , Keith Busch Subject: [PATCH 2/2] x86/vmd: Initialize list item in irq disable Date: Tue, 17 May 2016 11:13:25 -0600 Message-Id: <1463505205-30431-2-git-send-email-keith.busch@intel.com> In-Reply-To: <1463505205-30431-1-git-send-email-keith.busch@intel.com> References: <1463505205-30431-1-git-send-email-keith.busch@intel.com> Sender: linux-pci-owner@vger.kernel.org List-ID: 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 --- arch/x86/pci/vmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/pci/vmd.c b/arch/x86/pci/vmd.c index b1662bf..e9e461b 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); + LIST_HEAD_INIT_RCU(&vmdirq->node); raw_spin_unlock(&list_lock); } -- 2.7.2