diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-11-03 18:06:52 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-12-19 17:46:08 -0500 |
commit | b6356d420296e4fd5045ab3b404bfeb9f659ce08 (patch) | |
tree | f0753aec62d0a423b78b49f4fcb2b6740c90c0e7 /fs/nfsd/nfsproc.c | |
parent | 2a1aa48929af78bfe8c4d4fe4b1ed8996af47cee (diff) | |
download | linux-stable-b6356d420296e4fd5045ab3b404bfeb9f659ce08.tar.gz linux-stable-b6356d420296e4fd5045ab3b404bfeb9f659ce08.tar.bz2 linux-stable-b6356d420296e4fd5045ab3b404bfeb9f659ce08.zip |
nfsd: use time64_t in nfsd_proc_setattr() check
Change to time64_t and ktime_get_real_seconds() to make the
logic work correctly on 32-bit architectures beyond 2038.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsproc.c')
-rw-r--r-- | fs/nfsd/nfsproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index aa013b736073..b25c90be29fb 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c @@ -94,7 +94,7 @@ nfsd_proc_setattr(struct svc_rqst *rqstp) * Solaris, at least, doesn't seem to care what the time * request is. We require it be within 30 minutes of now. */ - time_t delta = iap->ia_atime.tv_sec - get_seconds(); + time64_t delta = iap->ia_atime.tv_sec - ktime_get_real_seconds(); nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); if (nfserr) |