Skip to content

Commit

Permalink
nfsd: Fix bad reserving space for encoding rdattr_error
Browse files Browse the repository at this point in the history
Introduced by commit 561f0ed (nfsd4: allow large readdirs).

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Kinglong Mee authored and J. Bruce Fields committed Jul 7, 2014
1 parent 69bbd9c commit c3a4561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c3a4561

Please sign in to comment.