On Tue, Oct 11, 2011 at 08:41:59AM +0530, Supriya Kannery wrote: > Index: qemu/block.c > =================================================================== > --- qemu.orig/block.c > +++ qemu/block.c > @@ -706,6 +706,7 @@ int bdrv_reopen(BlockDriverState *bs, in > { > BlockDriver *drv = bs->drv; > int ret = 0, open_flags; > + BDRVReopenState *rs;
BDRVReopenState *rs = NULL; If the abort path is taken we need to make sure rs has a defined value. Note that the abort path currently doesn't handle rs == NULL and will segfault in raw_reopen_abort().