aboutsummaryrefslogtreecommitdiff
path: root/translate-all.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-07-09 10:05:47 +0200
committerKevin Wolf <kwolf@redhat.com>2014-07-14 12:03:20 +0200
commitabd764250fbce6f285513d74f03eb5c526e520f6 (patch)
treef782045c780ae30049bef65a2e0c819ceaf8aaa1 /translate-all.c
parent0a21ea3289c5a3b982386e3eaaa37627c18f5e35 (diff)
downloadqemu-abd764250fbce6f285513d74f03eb5c526e520f6.zip
qemu-abd764250fbce6f285513d74f03eb5c526e520f6.tar.gz
qemu-abd764250fbce6f285513d74f03eb5c526e520f6.tar.bz2
dataplane: do not free VirtQueueElement in vring_push()
VirtQueueElement is allocated in vring_pop() so it seems to make sense that vring_push() should free it. Alas, virtio-blk frees VirtQueueElement itself in virtio_blk_free_request(). This patch solves a double-free assertion in glib's g_slice_free(). Rename vring_free_element() to vring_unmap_element() since it no longer frees the VirtQueueElement. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'translate-all.c')
0 files changed, 0 insertions, 0 deletions