From patchwork Sun Jan 16 19:37:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Juhl X-Patchwork-Id: 482581 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0GJbtat019231 for ; Sun, 16 Jan 2011 19:37:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753805Ab1APThy (ORCPT ); Sun, 16 Jan 2011 14:37:54 -0500 Received: from swampdragon.chaosbits.net ([90.184.90.115]:15914 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753754Ab1APThx (ORCPT ); Sun, 16 Jan 2011 14:37:53 -0500 Received: by swampdragon.chaosbits.net (Postfix, from userid 1000) id C433F9403F; Sun, 16 Jan 2011 20:37:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by swampdragon.chaosbits.net (Postfix) with ESMTP id BC71A9403B; Sun, 16 Jan 2011 20:37:52 +0100 (CET) Date: Sun, 16 Jan 2011 20:37:52 +0100 (CET) From: Jesper Juhl To: linux-acpi@vger.kernel.org cc: linux-kernel@vger.kernel.org, Len Brown , Lin Ming Subject: [PATCH] ACPI: Fix memory leak in acpi_ev_asynch_execute_gpe_method(). Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 16 Jan 2011 19:37:56 +0000 (UTC) diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c index 7c339d3..b6de1fb 100644 --- a/drivers/acpi/acpica/evgpe.c +++ b/drivers/acpi/acpica/evgpe.c @@ -471,6 +471,7 @@ static void ACPI_SYSTEM_XFACE acpi_ev_asynch_execute_gpe_method(void *context) status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); if (ACPI_FAILURE(status)) { + ACPI_FREE(local_gpe_event_info); return_VOID; } @@ -478,6 +479,7 @@ static void ACPI_SYSTEM_XFACE acpi_ev_asynch_execute_gpe_method(void *context) if (!acpi_ev_valid_gpe_event(gpe_event_info)) { status = acpi_ut_release_mutex(ACPI_MTX_EVENTS); + ACPI_FREE(local_gpe_event_info); return_VOID; }