projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d0bec
)
vhost-user-gpu: do not send scanout update if no GPU socket
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Wed, 5 Jun 2019 14:58:25 +0000
(16:58 +0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Sun, 16 Jun 2019 20:16:52 +0000
(16:16 -0400)
Should fix coverity CID
1401760
.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <
20190605145829
.7674-2-marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/vhost-user-gpu/main.c
patch
|
blob
|
history
diff --git
a/contrib/vhost-user-gpu/main.c
b/contrib/vhost-user-gpu/main.c
index f9e2146b69c48e871f842a6fa74fedca2fa09cec..9614c9422c9f65cbdea9643eb52c52578b356b10 100644
(file)
--- 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),