03a35024a6
Otherwise, another valid fd may be closed. Cc: mesa-stable Reviewed-by: Aaron Ruby <aruby@qnx.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34885>