From: David Brownell Date: Sun, 1 Oct 2006 06:28:16 +0000 (-0700) Subject: [PATCH] RTC class: error checks X-Git-Tag: v2.6.19-rc1~568 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db621f174d2c017d960089ea8cbc91c0763f1069;p=pandora-kernel.git [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 Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed