]> git.ipfire.org Git - thirdparty/qemu.git/commit
vvfat: Fix double free for opening the image rw
authorKevin Wolf <mail@kevin-wolf.de>
Fri, 10 Sep 2010 10:27:03 +0000 (12:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 13 Sep 2010 12:35:01 +0000 (14:35 +0200)
commit345a6d2b54f0c3705a088e626d24e9376ff4f233
tree1fedc1fb2d4b9c9c7bc25c81bcebc9c3f816ac45
parent1b191088aed81f1b3661b1554f98a038872a9423
vvfat: Fix double free for opening the image rw

Allocation and deallocation of bs->opaque is not in the control of a
block driver. Therefore it should not set bs->opaque to a data structure
used by another bs, or closing the image will lead to a double free.

Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
(cherry picked from commit 0af1e52e93bf5da63b15f1f9596dd4c076da07dc)
block/vvfat.c