[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/5] vhost-user-gpu: do not send scanout update if n
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 1/5] vhost-user-gpu: do not send scanout update if no GPU socket |
Date: |
Wed, 5 Jun 2019 16:58:25 +0200 |
Should fix coverity CID 1401760.
Signed-off-by: Marc-André Lureau <address@hidden>
---
contrib/vhost-user-gpu/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/vhost-user-gpu/main.c b/contrib/vhost-user-gpu/main.c
index f9e2146b69..9614c9422c 100644
--- a/contrib/vhost-user-gpu/main.c
+++ b/contrib/vhost-user-gpu/main.c
@@ -354,7 +354,7 @@ vg_disable_scanout(VuGpu *g, int scanout_id)
scanout->width = 0;
scanout->height = 0;
- {
+ if (g->sock_fd >= 0) {
VhostUserGpuMsg msg = {
.request = VHOST_USER_GPU_SCANOUT,
.size = sizeof(VhostUserGpuScanout),
--
2.22.0.rc2.384.g1a9a72ea1d