diff options
author | Alon Levy <alevy@redhat.com> | 2013-03-13 17:58:35 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-16 11:52:09 +0200 |
commit | 8bb9f51ca243551fb838a3a6a2983016ed2bbb73 (patch) | |
tree | d51a17a1f104be2b9b48564b0aa6ab8682716f0b /hw/display | |
parent | 5c74fb27f94821057c7929a8244cabe86adf2b8d (diff) | |
download | qemu-8bb9f51ca243551fb838a3a6a2983016ed2bbb73.zip qemu-8bb9f51ca243551fb838a3a6a2983016ed2bbb73.tar.gz qemu-8bb9f51ca243551fb838a3a6a2983016ed2bbb73.tar.bz2 |
spice: (32 bit only) fix surface cmd tracking destruction
No change for 64 bit arches, but for 32 bit previously we zeroed half
the surfaces cmd array, instead of all of it.
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/qxl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 1f7c8fe..cb47995 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -230,7 +230,7 @@ static void qxl_spice_destroy_surfaces_complete(PCIQXLDevice *qxl) trace_qxl_spice_destroy_surfaces_complete(qxl->id); qemu_mutex_lock(&qxl->track_lock); memset(qxl->guest_surfaces.cmds, 0, - sizeof(qxl->guest_surfaces.cmds) * qxl->ssd.num_surfaces); + sizeof(qxl->guest_surfaces.cmds[0]) * qxl->ssd.num_surfaces); qxl->guest_surfaces.count = 0; qemu_mutex_unlock(&qxl->track_lock); } |