From 33687d8cab55e11acedd3657e7d4f4bffef15fce Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Tue, 15 Mar 2022 11:50:00 +0000 Subject: [PATCH] SWDEV-327455 - Fix for event node crash Change-Id: I4418800f04450f1bd23cef4e7812631727458a3b --- hipamd/src/hip_event.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hipamd/src/hip_event.cpp b/hipamd/src/hip_event.cpp index 3fa8837fee..9a036127e2 100644 --- a/hipamd/src/hip_event.cpp +++ b/hipamd/src/hip_event.cpp @@ -131,7 +131,9 @@ int64_t Event::time() const { hipError_t Event::streamWaitCommand(amd::Command*& command, amd::HostQueue* queue) { amd::Command::EventWaitList eventWaitList; - eventWaitList.push_back(event_); + if (event_ != nullptr) { + eventWaitList.push_back(event_); + } command = new amd::Marker(*queue, kMarkerDisableFlush, eventWaitList); if (command == NULL) {