[33/34] migration: fix qemu_get_fd for BufferedFile

Submitted by Juan Quintela on Dec. 19, 2012, 12:33 p.m.

Details

Message ID 1355920437-29882-34-git-send-email-quintela@redhat.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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;
 }

 /*