Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/efa: fix leak of dmabuf fd in cuda p2p probe
prior to this patch, when efa_hmem_info_check_p2p_support_cuda elected to attempt dmabuf for p2p, we previously leaked the file descriptor returned by cuMemGetHandleForAddressRange in all cases. This ultimately meant the dmabuf stuck around for the lifetime of the process, even after dereg and after releasing the memory back to the device mempool. All calls to cuda_get_dmabuf_fd need a corresponding close call. Signed-off-by: Nicholas Sielicki <[email protected]>
- Loading branch information