[RFC PATCH 12/13] vsock: prevent transport modules unloading

Stefan Hajnoczi
Wed, 09 Oct 2019 13:28:33 -0000

On Fri, Sep 27, 2019 at 01:27:02PM +0200, Stefano Garzarella
wrote:
> diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
> index c5f46b8242ce..750b62711b01 100644
> --- a/net/vmw_vsock/af_vsock.c
> +++ b/net/vmw_vsock/af_vsock.c
> @@ -416,13 +416,28 @@ int vsock_assign_transport(struct vsock_sock *vsk,
struct vsock_sock *psk)
>  		return -ESOCKTNOSUPPORT;
>  	}
>
> -	if (!vsk->transport)
> +	/* We increase the module refcnt to prevent the tranport unloading

s/tranport/transport/

Otherwise:

Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL:
<http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20191009/ecfbcef8/attachment.sig>