1 From b7b94b6016b89bf698d661ce4fd22139e771a835 Mon Sep 17 00:00:00 2001
2 From: Orit Wasserman <owasserm@redhat.com>
3 Date: Mon, 24 Sep 2012 13:11:10 +0200
4 Subject: [PATCH] Clear handler only for valid fd
6 Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
8 (cherry picked from commit 3202becaa2b805497ce9e6faa6edfb83665f91b1)
10 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
13 1 file changed, 3 insertions(+), 1 deletion(-)
15 diff --git a/migration.c b/migration.c
16 index 1edeec5..22a05c4 100644
19 @@ -240,7 +240,9 @@ static int migrate_fd_cleanup(MigrationState *s)
23 - qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
25 + qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
29 DPRINTF("closing file\n");