rocr: Add missing close of dmabuf after import

Dieser Commit ist enthalten in:
Chris Freehill
2025-06-17 15:50:53 -05:00
committet von Yat Sin, David
Ursprung 649ec63a4f
Commit 24f36de037
@@ -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;
}