David Brownell db621f174d [PATCH] RTC class: error checks
The rtc_is_valid_tm() routine needs to treat some of the fields it checks as
unsigned, to prevent wrongly accepting invalid rtc_time structs; this is the
same approach used elsewhere in the RTC code for such tests.

Conversely, rtc_proc_show() is missing one invalid-day-of-month test that
rtc_is_valid_tm() makes: there is no day zero.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-01 00:39:25 -07:00
..
2006-10-01 00:39:25 -07:00
2006-03-27 08:44:51 -08:00
2006-10-01 00:39:25 -07:00
2006-10-01 00:39:25 -07:00
2006-06-05 12:29:17 -07:00
2006-06-25 10:01:14 -07:00
2006-10-01 00:39:25 -07:00
2006-10-01 00:39:25 -07:00