migration: fix qemu_get_fd for BufferedFile
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Nov 2012 23:42:50 +0000 (00:42 +0100)
committerJuan Quintela <quintela@redhat.com>
Thu, 20 Dec 2012 22:09:40 +0000 (23:09 +0100)
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

index 596aca727612512633ab8289280e000187f84254..3fcc1c8616488240b5fef110766579cb19030594 100644 (file)
@@ -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;
 }
 
 /*