SWDEV-460581 - Fixed memory leak in hipIpcCloseMemHandle
hsa_amd_ipc_memory_detach is called with an invalid mapped pointer. Changed to pass the svm pointer of the owner memory instead. Change-Id: I8203c6e2d718efb8ca3b028309bc78caff8d4c7d
Dieser Commit ist enthalten in:
committet von
Maneesh Gupta
Ursprung
87619af175
Commit
5bb30d7718
@@ -621,7 +621,7 @@ Buffer::~Buffer() {
|
|||||||
|
|
||||||
if (owner()->ipcShared()) {
|
if (owner()->ipcShared()) {
|
||||||
// Detach the memory from HSA
|
// Detach the memory from HSA
|
||||||
auto hsa_status = hsa_amd_ipc_memory_detach(owner()->getHostMem());
|
auto hsa_status = hsa_amd_ipc_memory_detach(owner()->getSvmPtr());
|
||||||
if (hsa_status != HSA_STATUS_SUCCESS) {
|
if (hsa_status != HSA_STATUS_SUCCESS) {
|
||||||
LogPrintfError("HSA failed to detach memory with status: %d \n", hsa_status);
|
LogPrintfError("HSA failed to detach memory with status: %d \n", hsa_status);
|
||||||
}
|
}
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren