rocr: Add missing close of dmabuf after import

Этот коммит содержится в:
Chris Freehill authored and Yat Sin, David committed 2025-06-17 20:22:34 -04:00
1 родитель 649ec63a4f
Коммит 24f36de037
1 file changed
+1
+1
Просмотреть файл
@@ -3396,6 +3396,7 @@ Runtime::MappedHandleAllowedAgent::MappedHandleAllowedAgent(
status = targetAgent->driver().ImportDMABuf(dmabuf_fd, *targetAgent,
shareable_handle);
assert(status == HSA_STATUS_SUCCESS);
close(dmabuf_fd);
if (status != HSA_STATUS_SUCCESS)
return;
}