]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/vhost/net.c
vhost_net: stop device during reset owner
[mirror_ubuntu-bionic-kernel.git] / drivers / vhost / net.c
index c7bdeb6556469efb93e2a6a7e742da3a37ad7e69..5636c7ca8ebac2aa92c0c43d3187f01d920d786e 100644 (file)
@@ -1208,6 +1208,7 @@ static long vhost_net_reset_owner(struct vhost_net *n)
        }
        vhost_net_stop(n, &tx_sock, &rx_sock);
        vhost_net_flush(n);
+       vhost_dev_stop(&n->dev);
        vhost_dev_reset_owner(&n->dev, umem);
        vhost_net_vq_reset(n);
 done: