diff --git a/runtime/hsa-runtime/core/driver/kfd/amd_kfd_driver.cpp b/runtime/hsa-runtime/core/driver/kfd/amd_kfd_driver.cpp index adb382d843..5acbe8aad1 100644 --- a/runtime/hsa-runtime/core/driver/kfd/amd_kfd_driver.cpp +++ b/runtime/hsa-runtime/core/driver/kfd/amd_kfd_driver.cpp @@ -259,7 +259,7 @@ void *KfdDriver::AllocateKfdMemory(const HsaMemFlags &flags, uint32_t node_id, bool KfdDriver::FreeKfdMemory(void *mem, size_t size) { if (mem == nullptr || size == 0) { debug_print("Invalid free ptr:%p size:%lu\n", mem, size); - return true; + return false; } if (hsaKmtFreeMemory(mem, size) != HSAKMT_STATUS_SUCCESS) {