SWDEV-329082 - Return right error code for hipHostUnregister

hipErrorHostMemoryNotRegistered should be returned when an
unregistered pointer is passed to hipHostUnregister

Change-Id: Ie76086b602bde2cd7a7a2b049cd03d29454ff306


[ROCm/clr commit: ed4014e519]
这个提交包含在:
Satyanvesh Dittakavi 于 2022-03-28 07:24:25 -04:00 提交
1 父节点 556a37f1de
当前提交 cb4625e5b7
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -1044,7 +1044,7 @@ hipError_t hipHostUnregister(void* hostPtr) {
}
LogPrintfError("Cannot unregister host_ptr: 0x%x \n", hostPtr);
HIP_RETURN(hipErrorInvalidValue);
HIP_RETURN(hipErrorHostMemoryNotRegistered);
}
// Deprecated function: