SWDEV-314667 - Fix for crash

Change-Id: I1cfeadde975649fb1791cf354f7ba3f70db9d162
This commit is contained in:
Sarbojit Sarkar
2022-02-18 11:14:31 +00:00
committed by Sarbojit Sarkar
parent a48429e922
commit a1562ec8f8
+1 -1
View File
@@ -859,7 +859,7 @@ class hipGraphEventRecordNode : public hipGraphNode {
}
hip::Event* e = reinterpret_cast<hip::Event*>(event_);
commands_.reserve(1);
amd::Command* command;
amd::Command* command = nullptr;
status = e->recordCommand(command, queue);
commands_.emplace_back(command);
return status;