Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756023Ab2JQCCi (ORCPT ); Tue, 16 Oct 2012 22:02:38 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:50800 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755942Ab2JQCCh (ORCPT ); Tue, 16 Oct 2012 22:02:37 -0400 MIME-Version: 1.0 In-Reply-To: <1350468706.15558.26.camel@cliu38-desktop-build> References: <1350468706.15558.26.camel@cliu38-desktop-build> Date: Tue, 16 Oct 2012 19:02:35 -0700 X-Google-Sender-Auth: zjuZ-yeEFkQ0-rPr3aVF7yf8-jk Message-ID: Subject: Re: [PATCH] x86/ioapic: fix the irq_2_pin mem leak when destroy_irq From: Yinghai Lu To: Chuansheng Liu Cc: tglx@linutronix.de, mingo@redhat.com, suresh.b.siddha@intel.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 30 On Wed, Oct 17, 2012 at 3:11 AM, Chuansheng Liu wrote: > > When destroying the irq, before free cfg, need to check > cfg->irq_2_pin and free it when it is not NULL. > > Signed-off-by: liu chuansheng > --- i had that in another patch... https://lkml.org/lkml/2012/2/23/574 ---- Subject [PATCH 01/13] x86, irq: Convert irq_2_pin list to generic list Date Thu, 23 Feb 2012 19:48:47 -0800 So we can use generic list helper function. Also make free_irq_cfg() free irq_2_pin list. ---- http://git.kernel.org/?p=linux/kernel/git/yinghai/linux-yinghai.git;a=commitdiff;h=4010f4dbd1b172e3080d3e6c459a58c4b575f081 Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/