summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2015-01-02 14:47:39 -0500
committerRusty Russell <rusty@rustcorp.com.au>2015-01-21 16:28:50 +1030
commit2bd56afd44123cea3741c7a46ddd96a46c92b8d9 (patch)
treeea894fee9d106874bdc3b0dacbf8bd6baad14467 /drivers/virtio
parent8cfc99b58366ea9f391fe0da7d16940ca6a1d9c0 (diff)
downloadlinux-2bd56afd44123cea3741c7a46ddd96a46c92b8d9.tar.gz
linux-2bd56afd44123cea3741c7a46ddd96a46c92b8d9.tar.bz2
linux-2bd56afd44123cea3741c7a46ddd96a46c92b8d9.zip
virtio_pci: drop useless del_vqs call
Device VQs were getting freed twice: once in every device's removal functions, and then again in virtio_pci_legacy_remove(). The ones in devices are called first, so drop the useless second call. Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio_pci_legacy.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index a5486e65e04b..19f93096739a 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drivers/virtio/virtio_pci_legacy.c
@@ -309,7 +309,6 @@ void virtio_pci_legacy_remove(struct pci_dev *pci_dev)
unregister_virtio_device(&vp_dev->vdev);
- vp_del_vqs(&vp_dev->vdev);
pci_iounmap(pci_dev, vp_dev->ioaddr);
pci_release_regions(pci_dev);
pci_disable_device(pci_dev);