Skip to content

Commit c3a4561

Browse files
kinglongmeeJ. Bruce Fields
authored andcommitted
nfsd: Fix bad reserving space for encoding rdattr_error
Introduced by commit 561f0ed (nfsd4: allow large readdirs). Signed-off-by: Kinglong Mee <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 69bbd9c commit c3a4561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfs4xdr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2641,7 +2641,7 @@ nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr)
26412641
{
26422642
__be32 *p;
26432643

2644-
p = xdr_reserve_space(xdr, 6);
2644+
p = xdr_reserve_space(xdr, 20);
26452645
if (!p)
26462646
return NULL;
26472647
*p++ = htonl(2);

0 commit comments

Comments
 (0)