Patchwork [33/34] migration: fix qemu_get_fd for BufferedFile

login
register
mail settings
Submitter Juan Quintela
Date Dec. 19, 2012, 12:33 p.m.
Message ID <1355920437-29882-34-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/207364/
State New
Headers show

Comments

Juan Quintela - Dec. 19, 2012, 12:33 p.m.
From: Paolo Bonzini <pbonzini@redhat.com>

Not really used, but nice to have it correct. :)

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/migration.c b/migration.c
index cabf17b..ca39564 100644
--- a/migration.c
+++ b/migration.c
@@ -625,7 +625,7 @@  static int buffered_get_fd(void *opaque)
 {
     QEMUFileBuffered *s = opaque;

-    return qemu_get_fd(s->file);
+    return s->migration_state->fd;
 }

 /*