diff options
-rw-r--r-- | drivers/virtio/virtio_pci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index ca40517ef9c2..a1cb1a1c6522 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c | |||
@@ -464,7 +464,11 @@ static void vp_del_vq(struct virtqueue *vq) | |||
464 | { | 464 | { |
465 | struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); | 465 | struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); |
466 | struct virtio_pci_vq_info *info = vq->priv; | 466 | struct virtio_pci_vq_info *info = vq->priv; |
467 | unsigned long size; | 467 | unsigned long flags, size; |
468 | |||
469 | spin_lock_irqsave(&vp_dev->lock, flags); | ||
470 | list_del(&info->node); | ||
471 | spin_unlock_irqrestore(&vp_dev->lock, flags); | ||
468 | 472 | ||
469 | iowrite16(info->queue_index, vp_dev->ioaddr + VIRTIO_PCI_QUEUE_SEL); | 473 | iowrite16(info->queue_index, vp_dev->ioaddr + VIRTIO_PCI_QUEUE_SEL); |
470 | 474 | ||