Skip to content
Commit 7210c678 authored by Kyle McMartin's avatar Kyle McMartin
Browse files

[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: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 562d139c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment