From: Greg KH on
2.6.32-stable review patch. If anyone has any objections, please let me know.

From: Aaro Koskinen <aaro.koskinen(a)>

commit 2a7a06a0cdd86d572e91657603180da5992be6d3 upstream.

The idr should be destroyed when the module is unloaded. Found with

Signed-off-by: Aaro Koskinen <aaro.koskinen(a)>
Cc: Alessandro Zummo <a.zummo(a)>
Signed-off-by: Andrew Morton <akpm(a)>
Signed-off-by: Linus Torvalds <torvalds(a)>
Signed-off-by: Greg Kroah-Hartman <gregkh(a)>

drivers/rtc/class.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/rtc/class.c
+++ b/drivers/rtc/class.c
@@ -226,6 +226,7 @@ static void __exit rtc_exit(void)
+ idr_destroy(&rtc_idr);


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at