vmxnet3: fix msix vectors unuse
authorJiri Pirko <jiri@resnulli.us>
Mon, 19 May 2014 13:47:16 +0000 (15:47 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 9 Jun 2014 13:38:58 +0000 (15:38 +0200)
In vmxnet3_cleanup_msix(), there is called msix_vector_unuse() with
VMXNET3_MAX_INTRS. That is not correct since vector of
value VMXNET3_MAX_INTRS was never used. Also all the used vectors
are not un-used. So call vmxnet3_unuse_msix_vectors() instead which
does the correct job.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/vmxnet3.c

index 1bb9259df25a08dd73f8039752c6ad51c46182b7..f3be4940e1b354aabb62baf4dc976f3427871db8 100644 (file)
@@ -2050,7 +2050,7 @@ vmxnet3_cleanup_msix(VMXNET3State *s)
     PCIDevice *d = PCI_DEVICE(s);
 
     if (s->msix_used) {
-        msix_vector_unuse(d, VMXNET3_MAX_INTRS);
+        vmxnet3_unuse_msix_vectors(s, VMXNET3_MAX_INTRS);
         msix_uninit(d, &s->msix_bar, &s->msix_bar);
     }
 }