From: Christoph Hellwig Date: Thu, 17 Nov 2016 10:43:14 +0000 (+0100) Subject: virtio_pci: remove the call to vp_free_vectors in vp_request_msix_vectors X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9f8196cc05caa9aba19f38f29c5f9a12722986c4;p=openwrt%2Fstaging%2Fblogic.git virtio_pci: remove the call to vp_free_vectors in vp_request_msix_vectors vp_request_msix_vectors is only called by vp_try_to_find_vqs, which already calls vp_free_vectors through vp_del_vqs in the failure case. Signed-off-by: Christoph Hellwig Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index 2846872d5728..5fc9d283a954 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -197,7 +197,6 @@ static int vp_request_msix_vectors(struct virtio_device *vdev, int nvectors, } return 0; error: - vp_free_vectors(vdev); return err; }