Skip to content
Snippets Groups Projects
Commit 6fcf3314 authored by Autumn Ashton's avatar Autumn Ashton :frog: Committed by Marge Bot
Browse files

venus: Fix zero-initialized fd causing apps to hang/crash


Some apps such as Gamescope crash under the mere presence of the virtio Vulkan driver without using a device.

This is because virtgpu::fd is zero-initialized upon allocation, which causes fd 0 to be closed in virtgpu_destroy.

Cc: mesa-stable
Fixes: 247232d5 ("venus: add experimental renderers")
Signed-off-by: default avatarJoshua Ashton <joshua@froggi.es>
Reviewed-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-By: default avatarMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
Part-of: <mesa/mesa!10814>
parent 855cb78d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment