VSOCK: Don't dec ack backlog twice for rejected connections
authorJorgen Hansen <jhansen@vmware.com>
Tue, 27 Sep 2016 06:59:53 +0000 (23:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Sep 2016 11:59:25 +0000 (07:59 -0400)
commit1190cfdb1a19d89561ae51cff7d9c2ead24b3ebe
treec7c3e0042bd4ab2e75eb98a275788bd59cf1ac57
parentbf1a85a8381a0f749aa321d7881b456b36eb398d
VSOCK: Don't dec ack backlog twice for rejected connections

If a pending socket is marked as rejected, we will decrease the
sk_ack_backlog twice. So don't decrement it for rejected sockets
in vsock_pending_work().

Testing of the rejected socket path was done through code
modifications.

Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Reviewed-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Aditya Sarwade <asarwade@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/af_vsock.c