qcow2: fix null deref apparent during migration
PATCH 1/1 qcow2: fix null deref apparent during migration
Signed-off-by Alon Levy <[email protected]>
--- block/qcow2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
block/qcow2.c +3 -1
@@ -512,7 +512,9 @@ static int qcow2_open(BlockDriverState *bs, QDict *options, int flags)/* Enable lazy_refcounts according to image and command line options */ opts =qemu_opts_create_nofail (&qcow2_runtime_opts); -qemu_opts_absorb_qdict (opts, options, &local_err); +if (options) { +qemu_opts_absorb_qdict (opts, options, &local_err); + }if (error_is_set (&local_err)) {qerror_report_err (local_err);error_free (local_err);
Signature · 1 line
1.8.1.4
Am 19.03.2013 um 10:35 hat Alon Levy geschrieben:
Quoted 4 lines
Signed-off-by Alon Levy <[email protected]>--- block/qcow2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Thanks, Alon. I already sent a more comprehensive patch yesterday:
http://patchwork.ozlabs.org/patch/228462/
I guess I should send a pull request for it quickly.
Kevin