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
@@ -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;
}