diff options
author | David Howells <dhowells@redhat.com> | 2016-03-04 15:53:46 (GMT) |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-03-04 15:53:46 (GMT) |
commit | e721498a63147618283d2a8093664809f300778c (patch) | |
tree | e0acf2feefc0b2cbb063af2bb953233f22e0d78d /net/rxrpc/ar-accept.c | |
parent | 1f27cde313d72d6b44a73ba89c8b2c6a99c628cf (diff) | |
download | linux-e721498a63147618283d2a8093664809f300778c.tar.xz |
rxrpc: Fix a case where a call event bit is being used as a flag bit
Fix a case where RXRPC_CALL_RELEASE (an event) is being used to specify a
flag bit. RXRPC_CALL_RELEASED should be used instead.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/ar-accept.c')
-rw-r--r-- | net/rxrpc/ar-accept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/ar-accept.c b/net/rxrpc/ar-accept.c index 6d79310..65ea813 100644 --- a/net/rxrpc/ar-accept.c +++ b/net/rxrpc/ar-accept.c @@ -185,7 +185,7 @@ invalid_service: read_unlock_bh(&local->services_lock); read_lock_bh(&call->state_lock); - if (!test_bit(RXRPC_CALL_RELEASE, &call->flags) && + if (!test_bit(RXRPC_CALL_RELEASED, &call->flags) && !test_and_set_bit(RXRPC_CALL_RELEASE, &call->events)) { rxrpc_get_call(call); rxrpc_queue_call(call); |