SWDEV-454681 - Add nullptr check for memsetParams in hipDrvGraphAddMemsetNode
Change-Id: Ife8784b23179c5613c29cde27dd2975cb729aaae
[ROCm/clr commit: d543ab6a0b]
This commit is contained in:
committed by
Maneesh Gupta
parent
2969f2476b
commit
bf817aeaa3
@@ -1228,7 +1228,7 @@ hipError_t hipDrvGraphAddMemsetNode(hipGraphNode_t* phGraphNode, hipGraph_t hGra
|
||||
HIP_INIT_API(hipDrvGraphAddMemsetNode, phGraphNode, hGraph, dependencies, numDependencies,
|
||||
memsetParams, ctx);
|
||||
if (phGraphNode == nullptr || hGraph == nullptr ||
|
||||
(numDependencies > 0 && dependencies == nullptr)) {
|
||||
(numDependencies > 0 && dependencies == nullptr) || memsetParams == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
hip::GraphNode* node;
|
||||
|
||||
Reference in New Issue
Block a user