]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/rtc/hctosys.c
powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.
[mirror_ubuntu-bionic-kernel.git] / drivers / rtc / hctosys.c
index e1cfa06810ef275704ab887935b39ca438ae5c3a..e79f2a181ad24217a3e3bc232593184b82d494fd 100644 (file)
@@ -49,6 +49,11 @@ static int __init rtc_hctosys(void)
 
        tv64.tv_sec = rtc_tm_to_time64(&tm);
 
+#if BITS_PER_LONG == 32
+       if (tv64.tv_sec > INT_MAX)
+               goto err_read;
+#endif
+
        err = do_settimeofday64(&tv64);
 
        dev_info(rtc->dev.parent,