diff options
author | pjd <pjd@FreeBSD.org> | 2009-09-26 18:23:16 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2009-09-26 18:23:16 +0000 |
commit | 62c08fc4760665f6d4d8807b9c082f6c1dc2ec12 (patch) | |
tree | c5a0ff35ccf817d3ccc475760b45023090d2c71a /sys/nfsserver | |
parent | 8b80b6e6e761794cd19b2c92d23251e4b983b1b4 (diff) | |
download | FreeBSD-src-62c08fc4760665f6d4d8807b9c082f6c1dc2ec12.zip FreeBSD-src-62c08fc4760665f6d4d8807b9c082f6c1dc2ec12.tar.gz |
Ensure that tv_sec is between INT32_MIN and INT32_MAX, so ZFS won't object.
This completes the fix from r185586.
PR: kern/139059
Reported by: Daniel Braniss <danny@cs.huji.ac.il>
Submitted by: Jaakko Heinonen <jh@saunalahti.fi>
Tested by: Daniel Braniss <danny@cs.huji.ac.il>
MFC after: 3 days
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_serv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 7b4eacf..3bb9a6a 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -1332,7 +1332,7 @@ nfsrv_create(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, tl = nfsm_dissect_nonblock(u_int32_t *, NFSX_V3CREATEVERF); /* Unique bytes, endianness is not important. */ - cverf.tv_sec = tl[0]; + cverf.tv_sec = (int32_t)tl[0]; cverf.tv_nsec = tl[1]; exclusive_flag = 1; break; |