summaryrefslogtreecommitdiffstats
path: root/lib/spinlock_debug.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-06 21:53:18 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-07 00:41:17 +0100
commit9e3a4afd5a66f9047e30ba225525e6ff01612dc4 (patch)
tree1f32bb96e97fb7ad4a0fc94b096cc30e308870ab /lib/spinlock_debug.c
parentvt: incomplete initialization of vc_tab_stop (diff)
downloadlinux-9e3a4afd5a66f9047e30ba225525e6ff01612dc4.tar.xz
linux-9e3a4afd5a66f9047e30ba225525e6ff01612dc4.zip
rtc: fix handling of missing tm_year data when reading alarms
When fixing up invalid years rtc_read_alarm() was calling rtc_valid_tm() as a boolean but rtc_valid_tm() returns zero on success or a negative number if the time is not valid so the test was inverted. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Alessandro Zummo <a.zummo@towertech.it> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions