hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read()
authorHaoran Zhang <[email protected]>
Thu, 22 Aug 2024 03:07:58 +0000 (22 11:07 +0800)
committerMichael Tokarev <[email protected]>
Fri, 23 Aug 2024 09:10:28 +0000 (23 12:10 +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 <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Michael Tokarev <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
hw/display/vhost-user-gpu.c

index 63c64dd..c0c6691 100644 (file)
@@ -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 ||