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

Commit b60475c9 authored by Jeff Layton's avatar Jeff Layton Committed by Anna Schumaker
Browse files

nfs: the length argument to read_buf should be unsigned



Since it gets passed through to xdr_inline_decode, we might as well
have read_buf expect what it expects -- a size_t.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent f844cd0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -72,7 +72,7 @@ static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy)
	return xdr_ressize_check(rqstp, p);
	return xdr_ressize_check(rqstp, p);
}
}


static __be32 *read_buf(struct xdr_stream *xdr, int nbytes)
static __be32 *read_buf(struct xdr_stream *xdr, size_t nbytes)
{
{
	__be32 *p;
	__be32 *p;