| Date | Wed, 9 Oct 2019 14:28:33 +0100 | From | Stefan Hajnoczi <> | Subject | Re: [RFC PATCH 12/13] vsock: prevent transport modules unloading |
| |
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@redhat.com> [unhandled content-type:application/pgp-signature] |