From a1562ec8f84e39a65c935a9c6504e1b5dece8742 Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Fri, 18 Feb 2022 11:14:31 +0000 Subject: [PATCH] SWDEV-314667 - Fix for crash Change-Id: I1cfeadde975649fb1791cf354f7ba3f70db9d162 --- hipamd/src/hip_graph_internal.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_graph_internal.hpp b/hipamd/src/hip_graph_internal.hpp index 07040d8f8c..39319cfe91 100644 --- a/hipamd/src/hip_graph_internal.hpp +++ b/hipamd/src/hip_graph_internal.hpp @@ -859,7 +859,7 @@ class hipGraphEventRecordNode : public hipGraphNode { } hip::Event* e = reinterpret_cast(event_); commands_.reserve(1); - amd::Command* command; + amd::Command* command = nullptr; status = e->recordCommand(command, queue); commands_.emplace_back(command); return status;