| Submitter | Orit Wasserman |
|---|---|
| Date | Sept. 24, 2012, 11:11 a.m. |
| Message ID | <1348485070-8190-5-git-send-email-owasserm@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/186360/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/migration.c b/migration.c index 1edeec5..22a05c4 100644 --- a/migration.c +++ b/migration.c @@ -240,7 +240,9 @@ static int migrate_fd_cleanup(MigrationState *s) { int ret = 0; - qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); + if (s->fd != -1) { + qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); + } if (s->file) { DPRINTF("closing file\n");
Signed-off-by: Orit Wasserman <owasserm@redhat.com> --- migration.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)