diff options
author | Axel Lin <[email protected]> | 2011-01-12 17:00:05 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-01-13 08:03:12 -0800 |
commit | 19412ce9fcc9ca2d0f5b62af15c63381f0ac9657 (patch) | |
tree | 61c93d1a1a1290683483a67b943cb49a1276a251 /net/unix/sysctl_net_unix.c | |
parent | 554ec37aca8f5fbe4d70df462d7032aaa5d95ae9 (diff) |
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 <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Sekhar Nori <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: Tony Lindgren <[email protected]>
Acked-by: Mark A. Greer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions