OSDN Git Service

SUNRPC: rpc_decode_header() must always return a non-zero value on error
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Mar 2019 13:29:00 +0000 (09:29 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Mar 2019 17:08:59 +0000 (13:08 -0400)
commiteb90a16e9087063943859ae99bbdddd1fbfcf477
tree3ca0be502f60b77e57006e08d0233e9d614a032b
parent27adc785928ae6b34cdda96f472735b77c91e247
SUNRPC: rpc_decode_header() must always return a non-zero value on error

Ensure that when the "garbage args" case falls through, we do set
an error of EIO.

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