diff --git a/level_zero/core/source/event/event_impl.inl b/level_zero/core/source/event/event_impl.inl index ac87de0150318..6c69e28cec795 100644 --- a/level_zero/core/source/event/event_impl.inl +++ b/level_zero/core/source/event/event_impl.inl @@ -566,7 +566,7 @@ ze_result_t EventImp::reset() { } unsetInOrderExecInfo(); - unsetCmdQueue(); + latestUsedCmdQueue = nullptr; this->resetCompletionStatus(); this->resetDeviceCompletionData(false); this->l3FlushAppliedOnKernel.reset(); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp index e5d8e72e047e3..fb455ac498115 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2023 Intel Corporation + * Copyright (C) 2020-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -1359,7 +1359,7 @@ HWTEST_F(CommandListCreate, givenSignalEventWhenCallingSynchronizeThenUnregister zeEventHostReset(event3); zeEventHostSynchronize(event3, 1); - EXPECT_EQ(ultCsr->getNumClients(), 0u); + EXPECT_EQ(ultCsr->getNumClients(), 1u); } zeEventDestroy(event1);