projects/linux·commit f59154c5

[PATCH] fs/udf/udftime.c: fix off by one error

f59154c5 · Adrian Bunk <[email protected]> · 2005-05-05 16:16:21 -07:00

This patch fixes an off by one error found by the Coverity checker.

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
f59154c53fac0bfee52393247beadf0474770351
Parents
25279526

Changes

1 files changed · +1 −1

FileStatusAddDelContent
fs/udf/udftime.cmodified+1−1View file

fs/udf/udftime.c

View file
diff --git a/fs/udf/udftime.c b/fs/udf/udftime.c
index c2634bd..457a8fe 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;