mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv/virtio: don't leak drm FD when using vpipe
The fd in radv_physical_device_try_create is one we opened in that function.
We don't need it when vpipe is in use, so we should close it,
before setting it to -1.
Fixes: 999d5098b4 ("radv/virtio: support vpipe")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35947>
This commit is contained in:
parent
a1466b762d
commit
62b3fd0a5e
1 changed files with 1 additions and 0 deletions
|
|
@ -2105,6 +2105,7 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm
|
|||
#ifdef HAVE_AMDGPU_VIRTIO
|
||||
if (debug_get_bool_option("AMD_FORCE_VPIPE", false)) {
|
||||
is_virtio = true;
|
||||
close(fd);
|
||||
fd = -1;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue