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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user