From patchwork Mon Oct 12 19:14:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Patterson X-Patchwork-Id: 53195 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9CJQhFN032411 for ; Mon, 12 Oct 2009 19:26:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933110AbZJLTPM (ORCPT ); Mon, 12 Oct 2009 15:15:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933067AbZJLTO6 (ORCPT ); Mon, 12 Oct 2009 15:14:58 -0400 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:46216 "EHLO g6t0185.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933052AbZJLTO4 (ORCPT ); Mon, 12 Oct 2009 15:14:56 -0400 Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g6t0185.atlanta.hp.com (Postfix) with ESMTP id AE4BF240D5; Mon, 12 Oct 2009 19:14:15 +0000 (UTC) Received: from ldl (linux.corp.hp.com [15.11.146.101]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id 95EFB2409C; Mon, 12 Oct 2009 19:14:15 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id 69C5CCF00F2; Mon, 12 Oct 2009 13:14:15 -0600 (MDT) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ydpF0iXdbWL7; Mon, 12 Oct 2009 13:14:15 -0600 (MDT) Received: from eh.fc.hp.com (eh.fc.hp.com [15.11.146.105]) by ldl (Postfix) with ESMTP id 51CB0CF00E9; Mon, 12 Oct 2009 13:14:15 -0600 (MDT) Received: from bob.kio (localhost [127.0.0.1]) by eh.fc.hp.com (Postfix) with ESMTP id 4576326160; Mon, 12 Oct 2009 13:14:15 -0600 (MDT) Subject: [PATCH v2 4/4] PCI: fix memory leak in aer_inject To: ying.huang@intel.com From: Andrew Patterson Cc: prarit@redhat.com, linux-pci@vger.kernel.org, andi@firstfloor.org, linux-kernel@vger.kernel.org, jbarnes@virtuousgeek.org Date: Mon, 12 Oct 2009 13:14:15 -0600 Message-ID: <20091012191415.14959.8772.stgit@bob.kio> In-Reply-To: <20091012191354.14959.47024.stgit@bob.kio> References: <20091012191354.14959.47024.stgit@bob.kio> User-Agent: StGit/0.14.3.386.gb02d MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c index da2ad6e..2246bf7 100644 --- a/drivers/pci/pcie/aer/aer_inject.c +++ b/drivers/pci/pcie/aer/aer_inject.c @@ -474,7 +474,7 @@ static void __exit aer_inject_exit(void) } spin_lock_irqsave(&inject_lock, flags); - list_for_each_entry_safe(err, err_next, &pci_bus_ops_list, list) { + list_for_each_entry_safe(err, err_next, &einjected, list) { list_del(&err->list); kfree(err); }