* [Qemu-devel] [PATCH] qcow2: fix null deref apparent during migration
@ 2013-03-19 9:35 Alon Levy
2013-03-19 10:25 ` Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Alon Levy @ 2013-03-19 9:35 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf, stefanha
Signed-off-by: Alon Levy <alevy@redhat.com>
---
block/qcow2.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/block/qcow2.c b/block/qcow2.c
index 1f99866..260a1d3 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -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);
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] qcow2: fix null deref apparent during migration
2013-03-19 9:35 [Qemu-devel] [PATCH] qcow2: fix null deref apparent during migration Alon Levy
@ 2013-03-19 10:25 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2013-03-19 10:25 UTC (permalink / raw)
To: Alon Levy; +Cc: qemu-devel, stefanha
Am 19.03.2013 um 10:35 hat Alon Levy geschrieben:
> Signed-off-by: Alon Levy <alevy@redhat.com>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-19 10:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-19 9:35 [Qemu-devel] [PATCH] qcow2: fix null deref apparent during migration Alon Levy
2013-03-19 10:25 ` Kevin Wolf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.