]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: The client call state must be changed before attachment to conn
authorDavid Howells <dhowells@redhat.com>
Sun, 4 Sep 2016 12:10:10 +0000 (13:10 +0100)
committerDavid Howells <dhowells@redhat.com>
Sun, 4 Sep 2016 12:10:10 +0000 (13:10 +0100)
commit2d4dbb77db9c8bdbb90c004822a5139c0d417787
tree5d7883b1d7cee050b782c540b7cee933adb12dd5
parent80e63a2a3f9085e9ec25a8ecb5118cc10dc940ab
rxrpc: The client call state must be changed before attachment to conn

We must set the client call state to RXRPC_CALL_CLIENT_SEND_REQUEST before
attaching the call to the connection struct, not after, as it's liable to
receive errors and conn aborts as soon as the assignment is made - and
these will cause its state to be changed outside of the initiating thread's
control.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/call_object.c
net/rxrpc/conn_client.c