aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/pci.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-06-25 13:47:06 -0700
committerDamjan Marion <dmarion@me.com>2019-06-29 07:38:32 +0000
commite5584965b7bf4e196bbddebc8a663fafb87c1f86 (patch)
treedfa43319fc6118deb7967002cacf6284a825ee6d /src/vnet/devices/virtio/pci.c
parent2d379d8cc7612c2a29670aa66d3d2b0a4007b951 (diff)
devices: virtio pci leaking spinlock
Memory is dirt cheap. But there is no need to throw it away. Type: fix Change-Id: I155130ab3c435b1c04d7c0e9f54795b8de9383d9 Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/pci.c')
-rw-r--r--src/vnet/devices/virtio/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c
index f53552a8436..1acbb3224f0 100644
--- a/src/vnet/devices/virtio/pci.c
+++ b/src/vnet/devices/virtio/pci.c
@@ -1298,6 +1298,7 @@ virtio_pci_delete_if (vlib_main_t * vm, virtio_if_t * vif)
virtio_free_used_desc (vm, vring);
}
vec_free (vring->buffers);
+ clib_spinlock_free (&vring->lockp);
vlib_physmem_free (vm, vring->desc);
}