Skip to content

Commit f59154c

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[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>
1 parent 2527952 commit f59154c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/udf/udftime.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ udf_stamp_to_time(time_t *dest, long *dest_usec, kernel_timestamp src)
103103
offset = 0;
104104

105105
if ((src.year < EPOCH_YEAR) ||
106-
(src.year > EPOCH_YEAR+MAX_YEAR_SECONDS))
106+
(src.year >= EPOCH_YEAR+MAX_YEAR_SECONDS))
107107
{
108108
*dest = -1;
109109
*dest_usec = -1;

0 commit comments

Comments
 (0)