projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: cedrus: don't initialize pointers with zero
[linux-2.6-microblaze.git]
/
drivers
/
rtc
/
hctosys.c
diff --git
a/drivers/rtc/hctosys.c
b/drivers/rtc/hctosys.c
index
e79f2a1
..
b9ec4a1
100644
(file)
--- a/
drivers/rtc/hctosys.c
+++ b/
drivers/rtc/hctosys.c
@@
-50,8
+50,10
@@
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)
+ if (tv64.tv_sec > INT_MAX) {
+ err = -ERANGE;
goto err_read;
+ }
#endif
err = do_settimeofday64(&tv64);