SWDEV-369547 - Ensure that ipc_mem_detach is not called for non-ipcShared MemObj.

Change-Id: Ia73b60b9f08d593301879e0f72c395edbc215112
Этот коммит содержится в:
Ioannis Assiouras
2022-11-25 16:37:49 +00:00
родитель e74835795a
Коммит b445717f72
+5
Просмотреть файл
@@ -2242,6 +2242,11 @@ bool Device::IpcDetach (void* dev_ptr) const {
return false;
}
if (!amd_mem_obj->ipcShared()) {
DevLogPrintfError("Memory object for the ptr: 0x%x is not ipcShared \n", dev_ptr);
return false;
}
// Get the original pointer from the amd::Memory object
void* orig_dev_ptr = nullptr;
if (amd_mem_obj->getSvmPtr() != nullptr) {