rocr: Add missing close of dmabuf after import

Ta zmiana jest zawarta w:
Chris Freehill authored and Yat Sin, David committed 2025-06-17 20:22:34 -04:00
1 rodzic 649ec63a4f
złożenie 24f36de037
Plik 1 zmieniony
+1
+1
Wyświetl plik
@@ -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;
}