Re: [RESEND PATCH] rtc: tps65910: add bounds checking

2018-04-10 Thread Alexandre Belloni
Hi, On 10/04/2018 15:24:17+0800, SZ Lin (林上智) wrote: > Since tm->tm_year is the offset relative to 1900, it needs to check for > positive value to avoid overflow in YEARS_REG register. > > The system will hang at the following stage on the next boot when overflow > has occurred. > > [2.22119

[RESEND PATCH] rtc: tps65910: add bounds checking

2018-04-10 Thread 林上智
Since tm->tm_year is the offset relative to 1900, it needs to check for positive value to avoid overflow in YEARS_REG register. The system will hang at the following stage on the next boot when overflow has occurred. [2.221192] systemd[1]: Time has been changed This patch fixes the above han