提交 1ee63101 编写于 作者: T Trond Myklebust

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

Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册