From d08e2409282364a2dbc48c58c2993744d4e73e45 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 20 Dec 2018 09:41:36 -0600 Subject: [PATCH] intercepting queue delete fixed without the callback registered Change-Id: If278c3fbd0feb91937981aee95039a243efaa130 --- src/core/intercept_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_);