SWDEV-327455 - Fix for event node crash

Change-Id: I4418800f04450f1bd23cef4e7812631727458a3b
Šī revīzija ir iekļauta:
Sarbojit Sarkar
2022-03-15 11:50:00 +00:00
revīziju iesūtīja Sarbojit Sarkar
vecāks 796b8c2b62
revīzija 33687d8cab
+3 -1
Parādīt failu
@@ -131,7 +131,9 @@ int64_t Event::time() const {
hipError_t Event::streamWaitCommand(amd::Command*& command, amd::HostQueue* queue) { hipError_t Event::streamWaitCommand(amd::Command*& command, amd::HostQueue* queue) {
amd::Command::EventWaitList eventWaitList; amd::Command::EventWaitList eventWaitList;
eventWaitList.push_back(event_); if (event_ != nullptr) {
eventWaitList.push_back(event_);
}
command = new amd::Marker(*queue, kMarkerDisableFlush, eventWaitList); command = new amd::Marker(*queue, kMarkerDisableFlush, eventWaitList);
if (command == NULL) { if (command == NULL) {