Commit 1ee63101 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.2: Ensure we always reset the result->count in decode_read_plus()

parent 5802f7c2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1087,6 +1087,7 @@ static int decode_read_plus(struct xdr_stream *xdr, struct nfs_pgio_res *res)
	if (unlikely(!p))
		return -EIO;

	res->count = 0;
	eof = be32_to_cpup(p++);
	segments = be32_to_cpup(p++);
	if (segments == 0)