]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read()
authorHaoran Zhang <wh1sper@zju.edu.cn>
Thu, 22 Aug 2024 03:07:58 +0000 (11:07 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 12 Sep 2024 06:01:40 +0000 (09:01 +0300)
fix vhost_user_gpu_chr_read() where `size` was incorrectly passed to `msg->flags`.

Fixes: 267f664658 ("hw/display: add vhost-user-vga & gpu-pci")
Signed-off-by: Haoran Zhang <wh1sper@zju.edu.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit d6192f3f7593536a4285e8ab6c6cf3f34973ce62)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/display/vhost-user-gpu.c

index 709c8a02a1468dfb26355bf363e717f1b410c183..373f04a7b43e4f6c7387847a2e70732dda1396d1 100644 (file)
@@ -385,7 +385,7 @@ vhost_user_gpu_chr_read(void *opaque)
     }
 
     msg->request = request;
-    msg->flags = size;
+    msg->flags = flags;
     msg->size = size;
 
     if (request == VHOST_USER_GPU_CURSOR_UPDATE ||