On Mon, Jun 30, 2014 at 07:03:37PM +0100, Peter Maydell wrote: > Commit 25814e8987 introduced an error-exit code path which does > a "goto exit" before the cow_bs variable is initialized, meaning > we would call bdrv_unref() on an uninitialized variable and > likely segfault. Fix this by moving the NULL-initialization > to the top of the function and making the exit code path handle > the case where it is NULL. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > block/cow.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-)
Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan
pgpukdcZBO2gH.pgp
Description: PGP signature