aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/netmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r--fs/cifs/netmisc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c
index 32562d199552..3adbd128e08e 100644
--- a/fs/cifs/netmisc.c
+++ b/fs/cifs/netmisc.c
@@ -956,7 +956,8 @@ struct timespec cnvrtDosUnixTm(__u16 date, __u16 time)
956 days = days - 1; /* do not count leap year for the year 2100 */ 956 days = days - 1; /* do not count leap year for the year 2100 */
957 957
958 /* adjust for leap year where we are still before leap day */ 958 /* adjust for leap year where we are still before leap day */
959 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); 959 if(year != 120)
960 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0);
960 sec += 24 * 60 * 60 * days; 961 sec += 24 * 60 * 60 * days;
961 962
962 ts.tv_sec = sec; 963 ts.tv_sec = sec;