summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-08-16 14:01:22 +0200
committerJeff Garzik <jgarzik@redhat.com>2009-09-09 03:17:47 +0200
commit02c24fa87724bb3af969463cd74dc3b3feb24740 (patch)
tree8ffcdc8e5aa79cc10f0658c11aaebe2d14d4aaf9 /mm/swapfile.c
parentlibata: unbreak TPM filtering by reorganizing ata_scsi_pass_thru() (diff)
downloadlinux-02c24fa87724bb3af969463cd74dc3b3feb24740.tar.xz
linux-02c24fa87724bb3af969463cd74dc3b3feb24740.zip
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 <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions