From: Adrian Bunk Date: Thu, 5 May 2005 23:16:21 +0000 (-0700) Subject: [PATCH] fs/udf/udftime.c: fix off by one error X-Git-Tag: v2.6.12-rc4~31 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f59154c53fac0bfee52393247beadf0474770351;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/udf/udftime.c b/fs/udf/udftime.c index c2634bda6b..457a8fe285 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;