Re: [PATCH v2] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-13 Thread Alexandre Belloni
On 03/12/2015 at 23:01:14 -0500, Sasha Levin wrote : > At some point after humans go extinct and robots cotrol the world, dividing > he time64_t by 86400 to extract the days will overflow a 32bit integer, > leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). > > Signed-off-by:

Re: [PATCH v2] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-13 Thread Alexandre Belloni
On 03/12/2015 at 23:01:14 -0500, Sasha Levin wrote : > At some point after humans go extinct and robots cotrol the world, dividing > he time64_t by 86400 to extract the days will overflow a 32bit integer, > leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). > > Signed-off-by:

[PATCH v2] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread Sasha Levin
At some point after humans go extinct and robots cotrol the world, dividing he time64_t by 86400 to extract the days will overflow a 32bit integer, leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). Signed-off-by: Sasha Levin --- drivers/rtc/rtc-lib.c |7 +++ 1 file

[PATCH v2] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread Sasha Levin
At some point after humans go extinct and robots cotrol the world, dividing he time64_t by 86400 to extract the days will overflow a 32bit integer, leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). Signed-off-by: Sasha Levin --- drivers/rtc/rtc-lib.c |