summaryrefslogtreecommitdiffstats
path: root/fs/udf/udftime.c
diff options
context:
space:
mode:
authorAdrian Bunk2005-05-06 01:16:21 +0200
committerLinus Torvalds2005-05-06 01:36:51 +0200
commitf59154c53fac0bfee52393247beadf0474770351 (patch)
tree002722bc8d24180077a35799e43dd75a19feb923 /fs/udf/udftime.c
parent[PATCH] documentation for strncpy() (diff)
downloadkernel-qcow2-linux-f59154c53fac0bfee52393247beadf0474770351.tar.gz
kernel-qcow2-linux-f59154c53fac0bfee52393247beadf0474770351.tar.xz
kernel-qcow2-linux-f59154c53fac0bfee52393247beadf0474770351.zip
[PATCH] fs/udf/udftime.c: fix off by one error
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>
Diffstat (limited to 'fs/udf/udftime.c')
-rw-r--r--fs/udf/udftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/udftime.c b/fs/udf/udftime.c
index c2634bda6b50..457a8fe28575 100644
--- 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;