diff options
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 1d5191fab62e..1b6573216998 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c | |||
@@ -473,7 +473,8 @@ static void vp_del_vqs(struct virtio_device *vdev) | |||
473 | 473 | ||
474 | list_for_each_entry_safe(vq, n, &vdev->vqs, list) { | 474 | list_for_each_entry_safe(vq, n, &vdev->vqs, list) { |
475 | info = vq->priv; | 475 | info = vq->priv; |
476 | if (vp_dev->per_vq_vectors) | 476 | if (vp_dev->per_vq_vectors && |
477 | info->msix_vector != VIRTIO_MSI_NO_VECTOR) | ||
477 | free_irq(vp_dev->msix_entries[info->msix_vector].vector, | 478 | free_irq(vp_dev->msix_entries[info->msix_vector].vector, |
478 | vq); | 479 | vq); |
479 | vp_del_vq(vq); | 480 | vp_del_vq(vq); |