SWDEV-315736: event_out param correct nullptr check
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Id164bc47c928e9c4541b29a0c9128e41e313ed22
[ROCm/clr commit: 2ae3b6d13f]
这个提交包含在:
1 父节点
0c90a8cda6
当前提交
f604a24a65
1 个文件已更改
+1
-1
@@ -1651,7 +1651,7 @@ hipError_t hipGraphAddEventWaitNode(hipGraphNode_t* pGraphNode, hipGraph_t graph
|
||||
|
||||
hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t* event_out) {
|
||||
HIP_INIT_API(hipGraphEventWaitNodeGetEvent, node, event_out);
|
||||
if (node == nullptr || *event_out == nullptr) {
|
||||
if (node == nullptr || event_out == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
reinterpret_cast<hipGraphEventWaitNode*>(node)->GetParams(event_out);
|
||||
|
||||
在新工单中引用
屏蔽一个用户