diff options
author | Glauber Costa <glommer@redhat.com> | 2009-07-14 18:26:51 -0400 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-16 17:28:51 -0500 |
commit | 0bb05eaff04d30609a98c0dae80bb5dba3e4e799 (patch) | |
tree | 114859324a6725453f0cf49aef7c74814377e09a /hw/ps2.c | |
parent | 9f6839d4b1721524a10c77768f73697cf1724ce5 (diff) | |
download | qemu-0bb05eaff04d30609a98c0dae80bb5dba3e4e799.zip qemu-0bb05eaff04d30609a98c0dae80bb5dba3e4e799.tar.gz qemu-0bb05eaff04d30609a98c0dae80bb5dba3e4e799.tar.bz2 |
fix segfault in setting migration speed
Hi,
Whoever wrote this migrate_set_speed function is totally stupid.
Any failed or completed migration keeps its state to allow probing of
migration data, but has no associated file anymore. It is, thus,
possible to crash qemu by calling migrate_set_speed after a migration
is finished (or failed, or cancelled), but before another one starts.
This patch fixes it.
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ps2.c')
0 files changed, 0 insertions, 0 deletions