]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit579dd15637e4690f090a2d8da0e97a084adb11e6
tree3ca0be502f60b77e57006e08d0233e9d614a032b
parentc741283f47d47d08ea688bb35706e8dd9d550102
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: fcff5623789a ("SUNRPC: Use struct xdr_stream when decoding...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c