aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/9p/trans_virtio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c
index 3d432068f627..5af18d11b518 100644
--- a/net/9p/trans_virtio.c
+++ b/net/9p/trans_virtio.c
@@ -615,7 +615,8 @@ static void p9_virtio_remove(struct virtio_device *vdev)
615{ 615{
616 struct virtio_chan *chan = vdev->priv; 616 struct virtio_chan *chan = vdev->priv;
617 617
618 BUG_ON(chan->inuse); 618 if (chan->inuse)
619 p9_virtio_close(chan->client);
619 vdev->config->del_vqs(vdev); 620 vdev->config->del_vqs(vdev);
620 621
621 mutex_lock(&virtio_9p_lock); 622 mutex_lock(&virtio_9p_lock);