]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rtc: test before subtraction on unsigned
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 31 Mar 2009 22:25:00 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:26 +0000 (08:59 -0700)
commitfa7af8b1bb6dfca7a0c8541683a9bfffbc8dd345
treee13f984d52f16ab82f5842d1f2267e13b8c06e36
parentc08cf9daf66844c60ebe9f89885d3a3e1893e61f
rtc: test before subtraction on unsigned

new_alarm is unsigned so test before the subtraction.

[akpm@linux-foundation.org: time-wrapping fix]
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: David Brownell <david-b@pacbell.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/rtc-ds1374.c