]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
rtc-core: fix memory leak
authorAaro Koskinen <aaro.koskinen@nokia.com>
Fri, 5 Mar 2010 21:44:24 +0000 (13:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:47 +0000 (11:26 -0800)
commit2a7a06a0cdd86d572e91657603180da5992be6d3
treea28063efd5886e95171a7e983e8b63c6e2b2db73
parent2e84067b6e557b0b85cdbceaf9a9189fc2c26536
rtc-core: fix memory leak

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