rxrpc: Fix exclusive client connections
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Sep 2016 21:37:15 +0000 (22:37 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 29 Sep 2016 21:37:15 +0000 (22:37 +0100)
commit8732db67c6b6dcdb455b73773ea2fc1e1d5024b1
tree392aef15628f869b9375ef2737ea46e8f3caeee9
parent31fbe81fe3426dfb7f8056a7f5106c6b1841a9aa
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>
net/rxrpc/conn_client.c