From 0a5f3556a174065c6fbd8ac44ad92dd9727d85aa Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Fri, 3 Mar 2023 16:03:36 +0900 Subject: [PATCH] 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 Part-of: --- src/asahi/lib/agx_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/asahi/lib/agx_device.c b/src/asahi/lib/agx_device.c index 32326912aac..bd3e3435261 100644 --- a/src/asahi/lib/agx_device.c +++ b/src/asahi/lib/agx_device.c @@ -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