Axel Lin
19412ce9fc
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>
2011-01-13 08:03:12 -08:00
..
2011-01-11 11:06:41 -08:00
2010-03-12 15:52:28 -08:00
2010-12-13 22:48:21 +01:00
2010-11-11 11:34:27 +01:00
2010-11-11 11:34:27 +01:00
2010-09-22 17:22:39 -07:00
2010-10-29 00:29:19 +02:00
2010-03-30 22:02:32 +09:00
2009-09-23 07:39:46 -07:00
2010-03-30 22:02:32 +09:00
2009-02-11 14:25:36 -08:00
2010-10-27 18:03:05 -07:00
2009-12-16 07:20:00 -08:00
2010-03-30 22:02:32 +09:00
2010-11-29 15:48:19 +11:00
2010-03-30 22:02:32 +09:00
2007-05-08 11:15:18 -07:00
2010-06-28 10:19:19 +10:00
2010-12-24 16:00:17 +01:00
2009-02-05 12:56:46 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-10-29 19:06:53 +09:00
2010-12-24 16:00:17 +01:00
2011-01-10 22:11:23 +01:00
2010-12-24 16:00:17 +01:00
2010-03-30 22:02:32 +09:00
2010-05-21 09:37:31 -07:00
2010-05-21 09:37:31 -07:00
2009-01-06 15:59:25 -08:00
2010-05-21 09:37:31 -07:00
2010-12-24 16:00:17 +01:00
2009-09-23 07:39:43 -07:00
2009-04-01 08:59:24 -07:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:07 -07:00
2009-04-02 01:05:31 +00:00
2010-08-11 08:59:07 -07:00
2010-05-25 08:07:08 -07:00
2010-08-11 08:59:08 -07:00
2010-10-27 18:03:06 -07:00
2010-12-10 22:24:24 -08:00
2010-10-27 18:03:05 -07:00
2010-10-22 10:52:56 -07:00
2009-09-23 07:39:43 -07:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:07 -07:00
2010-08-11 08:59:07 -07:00
2010-08-11 08:59:07 -07:00
2009-09-23 07:39:43 -07:00
2010-03-30 22:02:32 +09:00
2010-10-29 00:29:06 +02:00
2010-10-29 00:30:01 +02:00
2010-08-06 09:25:50 -06:00
2010-11-17 13:53:46 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:06 -07:00
2010-10-24 13:41:39 -07:00
2011-01-13 08:03:12 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:06 -07:00
2009-12-16 07:19:58 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-09-09 18:57:24 -07:00
2009-03-31 01:14:44 +04:00
2009-04-02 01:05:32 +00:00
2010-08-11 08:59:07 -07:00
2009-09-23 07:39:43 -07:00
2010-08-11 08:59:08 -07:00
2010-10-27 15:30:32 +09:00
2010-03-30 22:02:32 +09:00
2010-12-22 19:43:34 -08:00
2010-12-24 16:00:17 +01:00
2010-07-27 14:32:06 -07:00
2010-10-27 18:03:06 -07:00
2010-06-03 11:33:58 +02:00
2010-12-21 14:53:43 +00:00
2010-11-08 15:08:42 +09:00
2008-11-21 01:24:38 -08:00
2010-05-21 09:37:31 -07:00
2010-03-30 22:02:32 +09:00
2008-11-14 16:37:54 -08:00
2010-03-12 15:52:28 -08:00
2009-06-19 16:46:05 -07:00
2010-03-06 11:26:47 -08:00
2010-05-21 09:37:31 -07:00
2010-03-30 22:02:32 +09:00
2009-12-16 07:20:00 -08:00
2010-05-25 08:07:08 -07:00
2010-03-07 22:16:56 +01:00
2009-12-16 07:20:00 -08:00