]> git.karo-electronics.de Git - karo-tx-linux.git/commit
VSOCK: Detach QP check should filter out non matching QPs.
authorJorgen Hansen <jhansen@vmware.com>
Tue, 5 Apr 2016 08:59:32 +0000 (01:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2016 20:39:09 +0000 (16:39 -0400)
commit8ab18d71de8b07d2c4d6f984b718418c09ea45c5
treeda4cda935f436aa8beeba79bd6d384084b61de9b
parent52f95bbfcf72126a9f90a386a974fcbe6c6cae46
VSOCK: Detach QP check should filter out non matching QPs.

The check in vmci_transport_peer_detach_cb should only allow a
detach when the qp handle of the transport matches the one in
the detach message.

Testing: Before this change, a detach from a peer on a different
socket would cause an active stream socket to register a detach.

Reviewed-by: George Zhang <georgezhang@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/vmci_transport.c