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>
This commit is contained in:
Kinglong Mee 2014-07-06 11:34:43 +08:00 committed by J. Bruce Fields
parent 69bbd9c7b9
commit c3a4561796
1 changed files with 1 additions and 1 deletions

View File

@ -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);