From: Axel Lin Date: Thu, 13 Jan 2011 01:00:05 +0000 (-0800) Subject: drivers/rtc/rtc-omap.c: fix a memory leak X-Git-Tag: v2.6.38-rc1~346 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19412ce9fcc9ca2d0f5b62af15c63381f0ac9657;p=pandora-kernel.git drivers/rtc/rtc-omap.c: fix a memory leak 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 Cc: Alessandro Zummo Cc: Sekhar Nori Cc: Kevin Hilman Cc: Tony Lindgren Acked-by: Mark A. Greer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed