mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 04:00:53 +07:00
virtio: clean up handling of request_irq failure
We call del_vqs twice when request_irq fails, this makes no sense. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
f83f12d660
commit
d41795978c
@ -360,10 +360,8 @@ static int vp_try_to_find_vqs(struct virtio_device *vdev, unsigned nvqs,
|
|||||||
vring_interrupt, 0,
|
vring_interrupt, 0,
|
||||||
vp_dev->msix_names[msix_vec],
|
vp_dev->msix_names[msix_vec],
|
||||||
vqs[i]);
|
vqs[i]);
|
||||||
if (err) {
|
if (err)
|
||||||
vp_del_vq(vqs[i]);
|
|
||||||
goto error_find;
|
goto error_find;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user