[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 11 Nov 2010 13:20:48 -0700
From: "Mark A. Greer" <mgreer@...sta.com>
To: Axel Lin <axel.lin@...il.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
"Mark A. Greer" <mgreer@...sta.com>,
Alessandro Zummo <a.zummo@...ertech.it>,
rtc-linux@...glegroups.com,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] rtc: rtc-omap - fix a memory leak
On Wed, Nov 10, 2010 at 10:37:20AM +0800, Axel Lin wrote:
> request_mem_region() will call kzalloc to allocate memory for struct resource.
> release_resource() unregisters the resource but does not free the allocated
> memory, thus use release_mem_region() instead to fix the memory leak.
>
> Also add a missing iounmap() in omap_rtc_remove().
>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
FWIW,
Acked-by: Mark A. Greer <mgreer@...sta.com>
--
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