diff --git a/src/core/intercept_queue.h b/src/core/intercept_queue.h index 1f31b0d9c9..c36f623cbb 100644 --- a/src/core/intercept_queue.h +++ b/src/core/intercept_queue.h @@ -110,7 +110,7 @@ class InterceptQueue { static hsa_status_t QueueDestroy(hsa_queue_t* queue) { std::lock_guard lck(mutex_); - hsa_status_t status = HSA_STATUS_ERROR; + hsa_status_t status = HSA_STATUS_SUCCESS; if (destroy_callback_ != NULL) { status = destroy_callback_(queue, callback_data_);