[PATCH 3/6] rtc-lib: Check tm_wday for validity in rtc_valid_tm()

Andrey Smirnov andrew.smirnov at gmail.com
Thu Jan 7 08:54:31 PST 2016

On Wed, Jan 6, 2016 at 10:57 PM, Antony Pavlov <antonynpavlov at gmail.com> wrote:
> On Wed,  6 Jan 2016 22:17:32 -0800
> Andrey Smirnov <andrew.smirnov at gmail.com> wrote:
>> RTC drivers rely on rtc_valid_tm() in order to make sure that no bogus
>> values from uninitialized HW registers get passed to the uppper layers.
>> A somewhat contrived way to reproduce this problem with DS1307 RTC
>> would be to do the following:
>> > rtc_write -b <bus> -a <addr> -r 3 0x00
>     rtc_write? Do you mean i2c_write here?

Yeah, that's a typo

More information about the barebox mailing list