[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] fix segfault on fd-migration starting

From: Wen Congyang
Subject: [Qemu-devel] [PATCH] fix segfault on fd-migration starting
Date: Mon, 07 Nov 2011 10:34:51 +0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4

We set s->mon to NULL in migrate_init. But we will use it
to search fd when do fd-migration, and it will cause qemu

Signed-off-by: Wen Congyang <address@hidden>

 migration.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/migration.c b/migration.c
index 4b17566..d094381 100644
--- a/migration.c
+++ b/migration.c
@@ -383,7 +383,7 @@ static MigrationState *migrate_init(Monitor *mon, int 
detach, int blk, int inc)
     s->bandwidth_limit = bandwidth_limit;
     s->blk = blk;
     s->shared = inc;
-    s->mon = NULL;
+    s->mon = mon;
     s->bandwidth_limit = bandwidth_limit;
     s->state = MIG_STATE_SETUP;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]