diff options
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 330aacbdec1f..be4047abd5ba 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c | |||
@@ -208,7 +208,8 @@ static irqreturn_t vp_interrupt(int irq, void *opaque) | |||
208 | 208 | ||
209 | /* the config->find_vq() implementation */ | 209 | /* the config->find_vq() implementation */ |
210 | static struct virtqueue *vp_find_vq(struct virtio_device *vdev, unsigned index, | 210 | static struct virtqueue *vp_find_vq(struct virtio_device *vdev, unsigned index, |
211 | void (*callback)(struct virtqueue *vq)) | 211 | void (*callback)(struct virtqueue *vq), |
212 | const char *name) | ||
212 | { | 213 | { |
213 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); | 214 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); |
214 | struct virtio_pci_vq_info *info; | 215 | struct virtio_pci_vq_info *info; |
@@ -247,7 +248,7 @@ static struct virtqueue *vp_find_vq(struct virtio_device *vdev, unsigned index, | |||
247 | 248 | ||
248 | /* create the vring */ | 249 | /* create the vring */ |
249 | vq = vring_new_virtqueue(info->num, VIRTIO_PCI_VRING_ALIGN, | 250 | vq = vring_new_virtqueue(info->num, VIRTIO_PCI_VRING_ALIGN, |
250 | vdev, info->queue, vp_notify, callback); | 251 | vdev, info->queue, vp_notify, callback, name); |
251 | if (!vq) { | 252 | if (!vq) { |
252 | err = -ENOMEM; | 253 | err = -ENOMEM; |
253 | goto out_activate_queue; | 254 | goto out_activate_queue; |