]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-img: Check create_opts before image creation
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:46 +0000 (18:32 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 21:08:20 +0000 (15:08 -0600)
commit2fbad1f9445534fe9f920950bed510714d58e8c8
tree819eed3814f067c7c5b430d164d20c7e8e2c0fe5
parentdee284885a3a3f3afe8fdc587197706d4eb52e01
qemu-img: Check create_opts before image creation

If a driver supports image creation, it needs to set the .create_opts
field. We can use that to make sure .create_opts for both drivers
involved is not NULL for the target image in qemu-img convert, which is
important so that the create_opts pointer in img_convert() is not NULL
after the qemu_opts_append() calls and when going into
qemu_opts_create().

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit f75613cf2488a37fb8019bc32a06ddbcd477d0ce)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qemu-img.c