]> git.hungrycats.org Git - linux/commit
[PATCH] Fix uninitialized data in EFI RTC /proc interface
authorAndrew Morton <akpm@osdl.org>
Sat, 27 Mar 2004 05:02:21 +0000 (21:02 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 27 Mar 2004 05:02:21 +0000 (21:02 -0800)
commit589df8082abf4224bed9d7caa6de99fadda27f80
treebb11d8c5393f9c8edece2842e55d192e8be0b67c
parent735c736e1814d8ad5b6b0c51f62f6b5210da0e2b
[PATCH] Fix uninitialized data in EFI RTC /proc interface

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

The problem is that we don't clear out the efi_time_t buffer before asking
EFI to fill it in.  EFI doesn't always write the entire buffer (in
particular, the alarm time only supports one second resolution, so the
nanosecond field is often untouched).

The effect is that 'cat /proc/driver/efirtc' shows garbage in the
nanoseconds part of the alarm time, and sometimes artifacts like bogus
alarm date and junk after the actual end of the text.
drivers/char/efirtc.c