aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran Zhang <wh1sper@zju.edu.cn>2024-08-22 11:07:58 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2024-08-23 12:10:28 +0300
commitd6192f3f7593536a4285e8ab6c6cf3f34973ce62 (patch)
treebb02ce9d553a435a9dd50fd378ca3a7e034fc8a4
parentd53bb908b552df11f4ac5541ec133ef4123fc0ca (diff)
downloadqemu-d6192f3f7593536a4285e8ab6c6cf3f34973ce62.zip
qemu-d6192f3f7593536a4285e8ab6c6cf3f34973ce62.tar.gz
qemu-d6192f3f7593536a4285e8ab6c6cf3f34973ce62.tar.bz2
hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read()
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>
-rw-r--r--hw/display/vhost-user-gpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c
index 63c64dd..c0c6691 100644
--- a/hw/display/vhost-user-gpu.c
+++ b/hw/display/vhost-user-gpu.c
@@ -390,7 +390,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 ||