projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2527952
)
[PATCH] fs/udf/udftime.c: fix off by one error
author
Adrian Bunk
<bunk@stusta.de>
Thu, 5 May 2005 23:16:21 +0000
(16:16 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Thu, 5 May 2005 23:36:51 +0000
(16:36 -0700)
This patch fixes an off by one error found by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/udf/udftime.c
patch
|
blob
|
history
diff --git
a/fs/udf/udftime.c
b/fs/udf/udftime.c
index c2634bda6b5030419d51b71e062b92e28addf8ee..457a8fe285751d73bd3f052b21532b1538c988dd 100644
(file)
--- a/
fs/udf/udftime.c
+++ b/
fs/udf/udftime.c
@@
-103,7
+103,7
@@
udf_stamp_to_time(time_t *dest, long *dest_usec, kernel_timestamp src)
offset = 0;
if ((src.year < EPOCH_YEAR) ||
- (src.year > EPOCH_YEAR+MAX_YEAR_SECONDS))
+ (src.year >
=
EPOCH_YEAR+MAX_YEAR_SECONDS))
{
*dest = -1;
*dest_usec = -1;