]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
rxrpc: Fix user call ID check in rxrpc_service_prealloc_one
authorYueHaibing <yuehaibing@huawei.com>
Wed, 1 Aug 2018 12:27:23 +0000 (13:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 18:49:49 +0000 (11:49 -0700)
commitc01f6c9b3207e52fc9973a066a856ddf7a0538d8
tree829bd9ab350898aa030f3a1be318ce38b884024e
parenta94c689e6c9e72e722f28339e12dff191ee5a265
rxrpc: Fix user call ID check in rxrpc_service_prealloc_one

There just check the user call ID isn't already in use, hence should
compare user_call_ID with xcall->user_call_ID, which is current
node's user_call_ID.

Fixes: 540b1c48c37a ("rxrpc: Fix deadlock between call creation and sendmsg/recvmsg")
Suggested-by: David Howells <dhowells@redhat.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/call_accept.c