diff options
author | David Howells <dhowells@redhat.com> | 2018-09-27 17:13:08 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-09-28 12:31:20 +0300 |
commit | dc71db34e4f3c06b8277c8f3c2ff014610607a8c (patch) | |
tree | 24c55206f233ae13f999d814ee206d0d3842e936 /net/rxrpc/conn_object.c | |
parent | 092ffc51fb3f9b8369e737c9320bf0bffb2c898f (diff) | |
download | linux-dc71db34e4f3c06b8277c8f3c2ff014610607a8c.tar.xz |
rxrpc: Fix checks as to whether we should set up a new call
There's a check in rxrpc_data_ready() that's checking the CLIENT_INITIATED
flag in the packet type field rather than in the packet flags field.
Fix this by creating a pair of helper functions to check whether the packet
is going to the client or to the server and use them generally.
Fixes: 248f219cb8bc ("rxrpc: Rewrite the data and ack handling code")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/conn_object.c')
-rw-r--r-- | net/rxrpc/conn_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/conn_object.c b/net/rxrpc/conn_object.c index 1746b48cb165..390ba50cfab4 100644 --- a/net/rxrpc/conn_object.c +++ b/net/rxrpc/conn_object.c @@ -96,7 +96,7 @@ struct rxrpc_connection *rxrpc_find_connection_rcu(struct rxrpc_local *local, k.epoch = sp->hdr.epoch; k.cid = sp->hdr.cid & RXRPC_CIDMASK; - if (sp->hdr.flags & RXRPC_CLIENT_INITIATED) { + if (rxrpc_to_server(sp)) { /* We need to look up service connections by the full protocol * parameter set. We look up the peer first as an intermediate * step and then the connection from the peer's tree. |