Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3a45617 authored by Kinglong Mee's avatar Kinglong Mee Committed by J. Bruce Fields
Browse files

nfsd: Fix bad reserving space for encoding rdattr_error



Introduced by commit 561f0ed4 (nfsd4: allow large readdirs).

Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 69bbd9c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);