mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
[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>
This commit is contained in:
parent
252795264d
commit
f59154c53f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue