asahi: Fix device fd leak in agx_close_device

I'm not sure if this was always broken downstream or just got dropped at
some point, but it's definitely UAPI-agnostic and missing now that we
have all the non-UAPI bits upstream.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21677>
This commit is contained in:
Asahi Lina
2023-03-03 16:03:36 +09:00
committed by Marge Bot
parent f083e1807d
commit 0a5f3556a1
+2
View File
@@ -321,6 +321,8 @@ agx_close_device(struct agx_device *dev)
util_vma_heap_finish(&dev->main_heap);
util_vma_heap_finish(&dev->usc_heap);
close(dev->fd);
}
uint32_t