diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-20 11:25:45 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-01-17 13:27:07 +0100 |
commit | fb3409de22c7c167dced51175500bc4b1a78dcc2 (patch) | |
tree | b7f6b3a6abba845510e307e9b688463e7efd65f0 /arch_init.c | |
parent | 47f4dac3fde809e3da4e60d9eb699f1d4b378249 (diff) | |
download | hqemu-fb3409de22c7c167dced51175500bc4b1a78dcc2.zip hqemu-fb3409de22c7c167dced51175500bc4b1a78dcc2.tar.gz |
Unlock ramlist lock also in error case
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch_init.c b/arch_init.c index 86f8544..8c833b6 100644 --- a/arch_init.c +++ b/arch_init.c @@ -642,12 +642,13 @@ static int ram_save_iterate(QEMUFile *f, void *opaque) i++; } + qemu_mutex_unlock_ramlist(); + if (ret < 0) { bytes_transferred += total_sent; return ret; } - qemu_mutex_unlock_ramlist(); qemu_put_be64(f, RAM_SAVE_FLAG_EOS); total_sent += 8; bytes_transferred += total_sent; |