diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2014-04-24 20:47:58 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2014-04-24 20:47:58 +0000 |
commit | 285b96444f59e952253a3ac9374885b29a03e9fe (patch) | |
tree | 2380eaffca96b9f1846dbd83569ed25dd33adc81 /sys/fs | |
parent | 6e7494c7e1c3c8d00265fe530a28384c7ccdee68 (diff) | |
download | FreeBSD-src-285b96444f59e952253a3ac9374885b29a03e9fe.zip FreeBSD-src-285b96444f59e952253a3ac9374885b29a03e9fe.tar.gz |
The PR reported that the old NFS server did not set uio_td == NULL
for the VOP_READ() call. This patch fixes both the old and new
server for this case.
PR: 185232
Submitted by: PR had patch for old server
Reviewed by: kib
MFC after: 2 weeks
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsserver/nfs_nfsdport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/nfsserver/nfs_nfsdport.c b/sys/fs/nfsserver/nfs_nfsdport.c index e36843c..5f8b884 100644 --- a/sys/fs/nfsserver/nfs_nfsdport.c +++ b/sys/fs/nfsserver/nfs_nfsdport.c @@ -673,6 +673,7 @@ nfsvno_read(struct vnode *vp, off_t off, int cnt, struct ucred *cred, uiop->uio_resid = len; uiop->uio_rw = UIO_READ; uiop->uio_segflg = UIO_SYSSPACE; + uiop->uio_td = NULL; nh = nfsrv_sequential_heuristic(uiop, vp); ioflag |= nh->nh_seqcount << IO_SEQSHIFT; error = VOP_READ(vp, uiop, IO_NODELOCKED | ioflag, cred); |