Browse Source

Merge branch 'for-3.16' of git://linux-nfs.org/~bfields/linux

Pull nfsd bugfix from Bruce Fields:
 "Another xdr encoding regression that may cause incorrect encoding on
  failures of certain readdirs"

* 'for-3.16' of git://linux-nfs.org/~bfields/linux:
  nfsd: Fix bad reserving space for encoding rdattr_error
Linus Torvalds 11 years ago
parent
commit
bae78dc259
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/nfsd/nfs4xdr.c

+ 1 - 1
fs/nfsd/nfs4xdr.c

@@ -2641,7 +2641,7 @@ nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr)
 {
 {
 	__be32 *p;
 	__be32 *p;
 
 
-	p = xdr_reserve_space(xdr, 6);
+	p = xdr_reserve_space(xdr, 20);
 	if (!p)
 	if (!p)
 		return NULL;
 		return NULL;
 	*p++ = htonl(2);
 	*p++ = htonl(2);