From: David Brownell Date: Thu, 1 Mar 2007 04:12:40 +0000 (-0800) Subject: [PATCH] rtc_cmos oops fix X-Git-Tag: v2.6.21-rc3~175 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e109ebd1eed2b91e3c9bb3b42cc27961f0dc22b3;p=pandora-kernel.git [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 Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed