]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
svc: Avoid garbage replies when pc_func() returns rpc_drop_reply
authorChuck Lever <chuck.lever@oracle.com>
Wed, 29 Jun 2016 17:55:14 +0000 (13:55 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 11 Jul 2016 19:50:43 +0000 (15:50 -0400)
commit0533b13072f4bf35738290d2cf9e299c7bc6c42a
tree2590a9ac8ce35dc5163f5985d1b55420800b6611
parent65b80179f9b8171b74625febf3457f41e792fa23
svc: Avoid garbage replies when pc_func() returns rpc_drop_reply

If an RPC program does not set vs_dispatch and pc_func() returns
rpc_drop_reply, the server sends a reply anyway containing a single
word containing the value RPC_DROP_REPLY (in network byte-order, of
course). This is a nonsense RPC message.

Fixes: 9e701c610923 ("svcrpc: simpler request dropping")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/svc.c