[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2] hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read() wh
From: |
Haoran Zhang |
Subject: |
[PATCH v2] hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read() where `size` was incorrectly passed to `msg->flags`. |
Date: |
Thu, 22 Aug 2024 10:31:36 +0800 |
Fixes: 267f664658 ("hw/display: add vhost-user-vga & gpu-pci")
Signed-off-by: Haoran Zhang <wh1sper@zju.edu.cn>
---
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 63c64ddde6..c0c66910f1 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 ||
--
2.43.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH v2] hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read() where `size` was incorrectly passed to `msg->flags`.,
Haoran Zhang <=