commit | ac39612824e1fad8baf82c2841e42b2142af3445 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Mon Nov 15 20:26:22 2010 -0500 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Mon Nov 15 20:44:29 2010 -0500 |
tree | 12a841ca751a50f324dc97963579002943d0c3c9 | |
parent | 8cd51a0ccd1beda4482507769887c0be9d70f8c1 [diff] [blame] |
NFS: readdir shouldn't read beyond the reply returned by the server Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index f313c4c..b7a204f 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c
@@ -4518,7 +4518,7 @@ xdr_read_pages(xdr, pglen); - return 0; + return pglen; } static int decode_readlink(struct xdr_stream *xdr, struct rpc_rqst *req)