rocr: Add missing close of dmabuf after import

Tá an tiomantas seo le fáil i:
Chris Freehill
2025-06-17 15:50:53 -05:00
tiomanta ag Yat Sin, David
tuismitheoir 649ec63a4f
tiomantas 24f36de037
+1
Féach ar an gComhad
@@ -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;
}