diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2019-02-01 14:42:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-03 22:06:25 +0300 |
commit | 22b5c0b63f32568e130fa2df4ba23efce3eb495b (patch) | |
tree | bc9447293bc9ae92fcbf10db6dd3352ff3378fdd /net/vmw_vsock/Makefile | |
parent | c14f07c6211cc01d52ed92cce1fade5071b8d197 (diff) | |
download | linux-22b5c0b63f32568e130fa2df4ba23efce3eb495b.tar.xz |
vsock/virtio: fix kernel panic after device hot-unplug
virtio_vsock_remove() invokes the vsock_core_exit() also if there
are opened sockets for the AF_VSOCK protocol family. In this way
the vsock "transport" pointer is set to NULL, triggering the
kernel panic at the first socket activity.
This patch move the vsock_core_init()/vsock_core_exit() in the
virtio_vsock respectively in module_init and module_exit functions,
that cannot be invoked until there are open sockets.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1609699
Reported-by: Yan Fu <yafu@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/Makefile')
0 files changed, 0 insertions, 0 deletions