rocr: Add missing close of dmabuf after import
Αυτή η υποβολή περιλαμβάνεται σε:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user