rtc-core: fix memory leak
commit1a8c3312c8db953779ba8480567880da165aa57b
authorAaro Koskinen <aaro.koskinen@nokia.com>
Fri, 5 Mar 2010 21:44:24 +0000 (5 13:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:49:41 +0000 (15 08:49 -0700)
tree86456d40765e8f03714dcef481393060ae37183b
parent154d9b4d57283cb6e6d446445fef805525f613ea
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