radv: Do not close fd -1 when NULL-winsys creation fails.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 23 May 2020 00:36:03 +0000 (02:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 25 May 2020 11:12:07 +0000 (11:12 +0000)
commita51ab5f95624d1c29d9592aa2212f80dead8ecdf
tree3527c3bdd2da827d0da5ca914522ca4666f782d4
parentcd0c5b64cccd833e0e93e29d263a6cdd86965d3c
radv: Do not close fd -1 when NULL-winsys creation fails.

Fixes: cd6ec2b1abb "radv: implement a dummy winsys for creating devices without AMDGPU"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181>
src/amd/vulkan/radv_device.c