Skip to content

Commit 3c383a3

Browse files
David Stevenskraxel
authored andcommitted
drm/virtio: set non-cross device blob uuid_state
Blob resources without the cross device flag don't have a uuid to share with other virtio devices. When exporting such blobs, set uuid_state to STATE_ERR so that virtgpu_virtio_get_uuid doesn't hang. Signed-off-by: David Stevens <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent b9770b0 commit 3c383a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/virtio/virtgpu_prime.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ struct dma_buf *virtgpu_gem_prime_export(struct drm_gem_object *obj,
9898
} else {
9999
bo->uuid_state = STATE_ERR;
100100
}
101+
} else if (!(bo->blob_flags & VIRTGPU_BLOB_FLAG_USE_CROSS_DEVICE)) {
102+
bo->uuid_state = STATE_ERR;
101103
}
102104

103105
exp_info.ops = &virtgpu_dmabuf_ops.ops;

0 commit comments

Comments
 (0)