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

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

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 5802f7c2
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment