]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-blk: add missing virtio_detach_element() call
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 19 Sep 2016 13:28:04 +0000 (14:28 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Oct 2016 22:16:58 +0000 (01:16 +0300)
commit97b93c8ad2242c5a5f89ac50f9e696289c5b4947
treeaf31ae74d3fa8cdbc39fe55abab6209fe5701d3a
parent2640d2a5ff08978d67bd87518d05d6b499488c9a
virtio-blk: add missing virtio_detach_element() call

Make sure to unmap the scatter-gather list and decrement vq->inuse
before freeing requests in virtio_blk_reset().

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/virtio-blk.c