]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
rxrpc: Don't release call mutex on error pointer
authorDavid Howells <dhowells@redhat.com>
Fri, 20 Oct 2017 16:01:22 +0000 (17:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 02:05:39 +0000 (03:05 +0100)
commit6cb3ece9685f78f9b288dd2afea58c35784e40b8
tree64c816bc23b70513cd8f44638d40486acbbc8fb2
parent748759d57e1b33427113bad7dc685ea3c139649e
rxrpc: Don't release call mutex on error pointer

Don't release call mutex at the end of rxrpc_kernel_begin_call() if the
call pointer actually holds an error value.

Fixes: 540b1c48c37a ("rxrpc: Fix deadlock between call creation and sendmsg/recvmsg")
Reported-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/af_rxrpc.c