From: Tejun Heo Date: Sun, 16 Aug 2009 12:01:22 +0000 (+0900) Subject: dmi: fix date handling in dmi_get_year() X-Git-Tag: v2.6.32-rc1~717^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c24fa87724bb3af969463cd74dc3b3feb24740;p=pandora-kernel.git dmi: fix date handling in dmi_get_year() Year parsing in dmi_get_year() had the following two bugs. * "00" is treated as invalid instead of 2000 because zero return from simple_strtoul() is treated as error. * "0N" where N >= 8 is treated as invalid of 200N because the leading 0 is considered to specify octal. Fix the above two bugs by using endptr to detect invalid number and forcing decimal. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed