hipIpcCloseMemHandle checks the status of IpcDetach

Change-Id: Ifbe8e5bbda610a1007f881627d0da1c874d03682
This commit is contained in:
Dittakavi Satyanvesh authored and Satyanvesh Dittakavi committed 2020-05-23 08:47:36 -04:00
1 parent 01dae52d64
commit c068778062
1 file changed
+3 -1
+3 -1
View File
@@ -2023,7 +2023,9 @@ hipError_t hipIpcCloseMemHandle(void* dev_ptr) {
amd::MemObjMap::RemoveMemObj(amd_mem_obj);
/* detach the memory */
device->IpcDetach(*amd_mem_obj);
if (!device->IpcDetach(*amd_mem_obj)){
HIP_RETURN(hipErrorInvalidHandle);
}
HIP_RETURN(hipSuccess);
}