]> git.proxmox.com Git - mirror_qemu.git/commit - hw/block/virtio-blk.c
virtio-blk: Move resetting of req->mr_next to virtio_blk_handle_rw_error
authorFam Zheng <famz@redhat.com>
Mon, 23 Nov 2015 00:41:20 +0000 (08:41 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 24 Nov 2015 01:27:49 +0000 (09:27 +0800)
commit466138dc689b6b14f31d5d20316affb4b4efd177
tree3e174681776a6d36a270ddfc6fa004b055971c9c
parentc9f6856ded10602147ca1d1806e7afb545430fd9
virtio-blk: Move resetting of req->mr_next to virtio_blk_handle_rw_error

"werror=report" would free the req in virtio_blk_handle_rw_error, we
mustn't write to it in that case.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1448239280-15025-1-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/virtio-blk.c