summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2014-05-08 11:59:23 +0000
committerrmacklem <rmacklem@FreeBSD.org>2014-05-08 11:59:23 +0000
commit710b5b651544ffe2d545acde443818de974aeea3 (patch)
treec9b78060be0f0444dc3c962e960f26aca7b15ac7 /sys/nfsserver
parent82003879bc1aa4afabba76dc7f7a95df3ea8bc96 (diff)
downloadFreeBSD-src-710b5b651544ffe2d545acde443818de974aeea3.zip
FreeBSD-src-710b5b651544ffe2d545acde443818de974aeea3.tar.gz
MFC: r264888
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.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_serv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index c1a7d2a..de58421 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -911,6 +911,7 @@ nfsrv_read(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
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);
OpenPOWER on IntegriCloud