rocr: Add missing close of dmabuf after import

[ROCm/ROCR-Runtime commit: 24f36de037]
This commit is contained in:
Chris Freehill authored and Yat Sin, David committed 2025-06-17 20:22:34 -04:00
1 parent b0e43cc426
commit 14b5faf333
1 file changed
+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;
}