vvfat: Fix double free for opening the image rw
commit9217e26f43df4aab7deaea35b21caacc1f1f854b
authorKevin Wolf <mail@kevin-wolf.de>
Fri, 10 Sep 2010 10:27:03 +0000 (10 12:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 21 Sep 2010 13:39:42 +0000 (21 15:39 +0200)
tree49a5d0c5ac30f47465d93489d7933b418c8eda2a
parentac48e389d073bf2c8703745eef4824fabe0427ba
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>
block/vvfat.c