Commit dc722275 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

rte_virtio: unlock vdev mutex on error path

parent 9864668f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -593,6 +593,7 @@ virtio_dev_release_queue(struct virtio_dev *vdev, uint16_t index)
	vq = vdev->vqs[index];
	if (vq == NULL) {
		SPDK_ERRLOG("virtqueue at index %"PRIu16" is not initialized.\n", index);
		pthread_mutex_unlock(&vdev->mutex);
		return;
	}