]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] rtc_cmos oops fix
authorDavid Brownell <david-b@pacbell.net>
Thu, 1 Mar 2007 04:12:40 +0000 (20:12 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 1 Mar 2007 22:53:37 +0000 (14:53 -0800)
commite109ebd1eed2b91e3c9bb3b42cc27961f0dc22b3
tree402ca61d265c59d35282b0786363dfbe32659564
parent0478e62e8a04154b7bdc0dfd33ffbcabc5446e9c
[PATCH] rtc_cmos oops fix

Fix an oops on the rtc_device_unregister() path by waiting until the last
moment before nulling the rtc->ops vector.  Fix some potential oopses by
having the rtc_class_open()/rtc_class_close() interface increase the RTC's
reference count while an RTC handle is available outside the RTC framework.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
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>
drivers/rtc/class.c
drivers/rtc/interface.c