vsock: move vsock_insert_unbound() in the vsock_create()
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 14 Nov 2019 09:57:44 +0000 (10:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:12:18 +0000 (18:12 -0800)
commit55f3e149b69004b95be47c891da50327ea8c0eb4
treeb4081840ef18aed5fce26d6072a5335cce16428b
parentb9ca2f5ff7784d46285a8f1b14419ac4645096f7
vsock: move vsock_insert_unbound() in the vsock_create()

vsock_insert_unbound() was called only when 'sock' parameter of
__vsock_create() was not null. This only happened when
__vsock_create() was called by vsock_create().

In order to simplify the multi-transports support, this patch
moves vsock_insert_unbound() at the end of vsock_create().

Reviewed-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/af_vsock.c