Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1290625 > unrolled thread

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

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2015-12-13 15:00 +0100
Last post2015-12-13 15:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] rtc: fix overflow and incorrect calculation in  rtc_time64_to_tm Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-12-13 15:00 +0100

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

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2015-12-13 15:00 +0100
SubjectRe: [PATCH v2] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm
Message-ID<qFflU-CN-19@gated-at.bofh.it>
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: Sasha Levin <sasha.levin@oracle.com>
> ---
>  drivers/rtc/rtc-lib.c |    7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
Applied, thanks.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web