[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100701135348.GF31804@srcf.ucam.org>
Date: Thu, 1 Jul 2010 14:53:48 +0100
From: Matthew Garrett <mjg@...hat.com>
To: Axel Lin <axel.lin@...il.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Len Brown <len.brown@...el.com>,
Dmitry Torokhov <dtor@...l.ru>,
Márton Németh <nm127@...email.hu>,
platform-driver-x86@...r.kernel.org
Subject: Re: [PATCH] dell-wmi: fix a memory leak
On Wed, Jun 30, 2010 at 05:25:46PM +0800, Axel Lin wrote:
> If dell_new_hk_type is true, dell_legacy_wmi_keymap will point to a memory
> allocated in setup_new_hk_map().
> In this case, the memory is not freed in current implementation.
> This patch fixes the leak by kfree(dell_wmi_keymap) if dell_new_hk_type is true.
>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
Applied, thanks.
--
Matthew Garrett | mjg59@...f.ucam.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists