buffered_file: Use right "opaque"
buffered_close 's' variable is of type QEMUFileBuffered, and wait_for_unfreeze() expect to receive a MigrationState, that 'coincidentaly' is s->opaque. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
4fc7d8195f
commit
db448a088c
@ -176,7 +176,7 @@ static int buffered_close(void *opaque)
|
||||
while (!s->has_error && s->buffer_size) {
|
||||
buffered_flush(s);
|
||||
if (s->freeze_output)
|
||||
s->wait_for_unfreeze(s);
|
||||
s->wait_for_unfreeze(s->opaque);
|
||||
}
|
||||
|
||||
ret = s->close(s->opaque);
|
||||
|
Loading…
Reference in New Issue
Block a user