]> git.baikalelectronics.ru Git - kernel.git/commit
[PARISC] fix uninitialized variable warning in asm/rtc.h
authorKyle McMartin <kyle@shortfin.cabal.ca>
Sat, 20 Oct 2007 20:23:00 +0000 (13:23 -0700)
committerKyle McMartin <kyle@shortfin.cabal.ca>
Sat, 20 Oct 2007 20:23:00 +0000 (13:23 -0700)
commit8e1c013f6e0136375bd71b6690eb333c40b28d6e
tree522752089cb90b8aa6fc92d9c82caca8b7946810
parent37e6fb2f9e756a8d96469395050e5d888e44327d
[PARISC] fix uninitialized variable warning in asm/rtc.h

get_rtc_time, in the case that PDC returns that the battery is bad, returns
an unmodified rtc_time arg to the caller, which then uses uninitialized
values. Fix this by memset-ing the arg with zeroes, so it will at least be
cleared if we return failure.

Spotted by John David Anglin.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
include/asm-parisc/rtc.h