diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-01-13 02:00:05 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 17:03:12 +0100 |
commit | 19412ce9fcc9ca2d0f5b62af15c63381f0ac9657 (patch) | |
tree | 61c93d1a1a1290683483a67b943cb49a1276a251 /drivers/rtc/rtc-cmos.c | |
parent | vgacon: check for efi machine (diff) | |
download | linux-19412ce9fcc9ca2d0f5b62af15c63381f0ac9657.tar.xz linux-19412ce9fcc9ca2d0f5b62af15c63381f0ac9657.zip |
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 <axel.lin@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-cmos.c')
0 files changed, 0 insertions, 0 deletions