Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2013 14:24:52 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r246285 - stable/9/sys/fs/nfsclient
Message-ID:  <201302031424.r13EOquH007708@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302031424.r13EOquH007708>