svn commit: r246285 - stable/9/sys/fs/nfsclient

Konstantin Belousov kib at FreeBSD.org
Sun Feb 3 14:24:52 UTC 2013


Author: kib
Date: Sun Feb  3 14:24:52 2013
New Revision: 246285
URL: http://svnweb.freebsd.org/changeset/base/246285

Log:
  MFC r245977:
  Be conservative and do not try to consume more bytes than was
  requested from the server for the read operation.

Modified:
  stable/9/sys/fs/nfsclient/nfs_clrpcops.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/fs/   (props changed)

Modified: stable/9/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- stable/9/sys/fs/nfsclient/nfs_clrpcops.c	Sun Feb  3 12:17:49 2013	(r246284)
+++ stable/9/sys/fs/nfsclient/nfs_clrpcops.c	Sun Feb  3 14:24:52 2013	(r246285)
@@ -1339,7 +1339,7 @@ nfsrpc_readrpc(vnode_t vp, struct uio *u
 			NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED);
 			eof = fxdr_unsigned(int, *tl);
 		}
-		NFSM_STRSIZ(retlen, rsize);
+		NFSM_STRSIZ(retlen, len);
 		error = nfsm_mbufuio(nd, uiop, retlen);
 		if (error)
 			goto nfsmout;


More information about the svn-src-all mailing list