projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e84067
)
rtc-core: fix memory leak
author
Aaro Koskinen
<aaro.koskinen@nokia.com>
Fri, 5 Mar 2010 21:44:24 +0000
(13:44 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:47 +0000
(11:26 -0800)
The idr should be destroyed when the module is unloaded. Found with
kmemleak.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/class.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/class.c
b/drivers/rtc/class.c
index be5a6b73e601c6be30966e9191c0d5315fd3d5db..40845c7e93221c7a13a236619ab8225e9638e9ca 100644
(file)
--- a/
drivers/rtc/class.c
+++ b/
drivers/rtc/class.c
@@
-226,6
+226,7
@@
static void __exit rtc_exit(void)
{
rtc_dev_exit();
class_destroy(rtc_class);
+ idr_destroy(&rtc_idr);
}
subsys_initcall(rtc_init);