diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-06-05 16:58:25 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-06-16 16:16:52 -0400 |
commit | 1e40d19877031120631295348c26f43bea08afed (patch) | |
tree | 3547fd8d2c436dceed03af39027d480fbf0bdaeb /contrib/vhost-user-gpu | |
parent | f3d0bec9f80e4ed7796fffa834ba0a53f2094f7f (diff) | |
download | qemu-1e40d19877031120631295348c26f43bea08afed.zip qemu-1e40d19877031120631295348c26f43bea08afed.tar.gz qemu-1e40d19877031120631295348c26f43bea08afed.tar.bz2 |
vhost-user-gpu: do not send scanout update if no GPU socket
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>
Diffstat (limited to 'contrib/vhost-user-gpu')
-rw-r--r-- | contrib/vhost-user-gpu/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vhost-user-gpu/main.c b/contrib/vhost-user-gpu/main.c index f9e2146..9614c94 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), |