39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
|
|
From a5e9442e8e386e62c043fa0b5fba469251fa5d4d Mon Sep 17 00:00:00 2001
|
||
|
|
From: Haoran Zhang <wh1sper@zju.edu.cn>
|
||
|
|
Date: Thu, 22 Aug 2024 11:07:58 +0800
|
||
|
|
Subject: [PATCH] hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read()
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
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: zhujun2 <zhujun2_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
hw/display/vhost-user-gpu.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c
|
||
|
|
index 4363e34db1..b2d89cd54e 100644
|
||
|
|
--- a/hw/display/vhost-user-gpu.c
|
||
|
|
+++ b/hw/display/vhost-user-gpu.c
|
||
|
|
@@ -334,7 +334,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 ||
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|