diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-07-06 11:34:43 +0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-07 14:16:31 -0400 |
commit | c3a4561796cffae6996264876ffca147b5c3709a (patch) | |
tree | 6fd9675207b53503f6106cf00b4e8bacbd82990d /fs/nfsd | |
parent | 69bbd9c7b99974f3a701d4de6ef7010c37182a47 (diff) | |
download | linux-stable-c3a4561796cffae6996264876ffca147b5c3709a.tar.gz linux-stable-c3a4561796cffae6996264876ffca147b5c3709a.tar.bz2 linux-stable-c3a4561796cffae6996264876ffca147b5c3709a.zip |
nfsd: Fix bad reserving space for encoding rdattr_error
Introduced by commit 561f0ed498 (nfsd4: allow large readdirs).
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 2fc7abebeb9b..b56b1cc02718 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -2641,7 +2641,7 @@ nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr) { __be32 *p; - p = xdr_reserve_space(xdr, 6); + p = xdr_reserve_space(xdr, 20); if (!p) return NULL; *p++ = htonl(2); |