]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-blk: fix reference a pointer which might be freed
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Mon, 18 Aug 2014 07:42:50 +0000 (15:42 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 8 Sep 2014 16:23:04 +0000 (11:23 -0500)
commit2a575c450e1f1e82fb040632e3608e376c4212c2
tree89b5a976211d08d11d834ac59a3c6912c07f3faf
parent1ad9dcec4777790b3a567888916c5aef55b512bf
virtio-blk: fix reference a pointer which might be freed

In function virtio_blk_handle_request, it may freed memory pointed by req,
So do not access member of req after calling this function.

Cc: qemu-stable@nongnu.org
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 1bdb176ac5add5dc9d54a230da7511b66851f1e7)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/block/virtio-blk.c