diff options
author | David Brownell <david-b@pacbell.net> | 2006-10-01 06:28:16 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 07:39:25 (GMT) |
commit | db621f174d2c017d960089ea8cbc91c0763f1069 (patch) | |
tree | 68a6ab944fdd30b2e6a7a0fb5a06629a4f4a6af9 /net | |
parent | 818a8674b0388d90e33a5d1b13946b40dda7032a (diff) | |
download | linux-fsl-qoriq-db621f174d2c017d960089ea8cbc91c0763f1069.tar.xz |
[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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions