diff options
| author | Fabiano Rosas <farosas@suse.de> | 2023-09-18 14:28:18 -0300 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2023-09-27 13:58:02 -0400 |
| commit | 7478fb0df914f0a5ab551ff74b1df62dd250500e (patch) | |
| tree | 57bb8703699a2afdb524d0aefafc0caef6fdcecd /ui/sdl2.c | |
| parent | 639decf529793fc544c8055b82be8abe77fa48fa (diff) | |
| download | focaccia-qemu-7478fb0df914f0a5ab551ff74b1df62dd250500e.tar.gz focaccia-qemu-7478fb0df914f0a5ab551ff74b1df62dd250500e.zip | |
migration: Fix possible race when shutting down to_dst_file
It's not safe to call qemu_file_shutdown() on the to_dst_file without first checking for the file's presence under the lock. The cleanup of this file happens at postcopy_pause() and migrate_fd_cleanup() which are not necessarily running in the same thread as migrate_fd_cancel(). Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20230918172822.19052-5-farosas@suse.de>
Diffstat (limited to 'ui/sdl2.c')
0 files changed, 0 insertions, 0 deletions