SUNRPC: Don't try to parse incomplete RPC messages
authorTrond Myklebust <trondmy@gmail.com>
Mon, 16 Sep 2019 13:12:19 +0000 (09:12 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 20 Sep 2019 19:15:24 +0000 (15:15 -0400)
commit9ba828861c56a21d211d5d10f5643774b1ea330d
tree45468b00aca4baedcad2cbbd9c6ed5fba9c0bd21
parentf925ab926d1a9c2112d34ecb59fbb050bb58646c
SUNRPC: Don't try to parse incomplete RPC messages

If the copy of the RPC reply into our buffers did not complete, and
we could end up with a truncated message. In that case, just resend
the call.

Fixes: a0584ee9aed80 ("SUNRPC: Use struct xdr_stream when decoding...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/clnt.c