tu/kgsl: Fix file descriptor double close
authorAlexey Nurmukhametov <alex@nurmukhametov.ru>
Wed, 23 Jun 2021 16:38:06 +0000 (19:38 +0300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 24 Jun 2021 18:16:15 +0000 (18:16 +0000)
commit8d0d2e82e7506d15a98b7889dd1478d472fdef0b
treefed055b77423b76ddd37d142ec8770231c5906bd
parenta426d7c2643eaa472fc01b5cc5f0bc89e7ac917b
tu/kgsl: Fix file descriptor double close

tu_kgsl.c: tu_enumerate_devices closed fd previously closed by
tu_physical_device_init function.

Move out the fd closing from tu_physical_device_init function because
they do not belong to it.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11561>
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_drm.c