]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rtc-core: fix memory leak
authorAaro Koskinen <aaro.koskinen@nokia.com>
Fri, 5 Mar 2010 21:44:24 +0000 (13:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:05:58 +0000 (09:05 -0700)
commit4d57ebd581a5dc9e1fdb6b59c34ddec72013f5b8
tree656d2f1772d20d75fb37e7d5f2ecf96eed5eb777
parenta7ca19cde1d0a1fa9613be3d54dcd65e8ec47904
rtc-core: fix memory leak

commit 2a7a06a0cdd86d572e91657603180da5992be6d3 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/rtc/class.c