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>
This commit is contained in:
parent
f3d0bec9f8
commit
1e40d19877
@ -354,7 +354,7 @@ vg_disable_scanout(VuGpu *g, int scanout_id)
|
|||||||
scanout->width = 0;
|
scanout->width = 0;
|
||||||
scanout->height = 0;
|
scanout->height = 0;
|
||||||
|
|
||||||
{
|
if (g->sock_fd >= 0) {
|
||||||
VhostUserGpuMsg msg = {
|
VhostUserGpuMsg msg = {
|
||||||
.request = VHOST_USER_GPU_SCANOUT,
|
.request = VHOST_USER_GPU_SCANOUT,
|
||||||
.size = sizeof(VhostUserGpuScanout),
|
.size = sizeof(VhostUserGpuScanout),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user