diff options
author | David Howells <dhowells@redhat.com> | 2016-09-29 17:37:15 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-29 17:37:15 -0400 |
commit | 8732db67c6b6dcdb455b73773ea2fc1e1d5024b1 (patch) | |
tree | 392aef15628f869b9375ef2737ea46e8f3caeee9 | |
parent | 31fbe81fe3426dfb7f8056a7f5106c6b1841a9aa (diff) |
rxrpc: Fix exclusive client connections
Exclusive connections are currently reusable (which they shouldn't be)
because rxrpc_alloc_client_connection() checks the exclusive flag in the
rxrpc_connection struct before it's initialised from the function
parameters. This means that the DONT_REUSE flag doesn't get set.
Fix this by checking the function parameters for the exclusive flag.
Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r-- | net/rxrpc/conn_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/conn_client.c b/net/rxrpc/conn_client.c index c76a125df891..f5ee8bfa5bef 100644 --- a/net/rxrpc/conn_client.c +++ b/net/rxrpc/conn_client.c | |||
@@ -200,7 +200,7 @@ rxrpc_alloc_client_connection(struct rxrpc_conn_parameters *cp, gfp_t gfp) | |||
200 | } | 200 | } |
201 | 201 | ||
202 | atomic_set(&conn->usage, 1); | 202 | atomic_set(&conn->usage, 1); |
203 | if (conn->params.exclusive) | 203 | if (cp->exclusive) |
204 | __set_bit(RXRPC_CONN_DONT_REUSE, &conn->flags); | 204 | __set_bit(RXRPC_CONN_DONT_REUSE, &conn->flags); |
205 | 205 | ||
206 | conn->params = *cp; | 206 | conn->params = *cp; |