projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83f12d
)
virtio: clean up handling of request_irq failure
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 15 Dec 2016 21:58:13 +0000
(23:58 +0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 15 Dec 2016 22:12:44 +0000
(
00:12
+0200)
We call del_vqs twice when request_irq fails, this
makes no sense.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_common.c
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio_pci_common.c
b/drivers/virtio/virtio_pci_common.c
index
d9a9058
..
423f3d9
100644
(file)
--- a/
drivers/virtio/virtio_pci_common.c
+++ b/
drivers/virtio/virtio_pci_common.c
@@
-360,10
+360,8
@@
static int vp_try_to_find_vqs(struct virtio_device *vdev, unsigned nvqs,
vring_interrupt, 0,
vp_dev->msix_names[msix_vec],
vqs[i]);
- if (err) {
- vp_del_vq(vqs[i]);
+ if (err)
goto error_find;
- }
}
return 0;