SWDEV-327563 - Unit_hipGraphAddKernelNode_Negative null kernelparams fix

Change-Id: Id05f8944f41c04036b310b23358c908a8efb5a5b


[ROCm/clr commit: 4274863f5d]
This commit is contained in:
Ajay
2022-07-08 19:52:49 +00:00
committed by Ajay GunaShekar
parent 02661ae763
commit e6565f3209
+1 -1
View File
@@ -69,7 +69,7 @@ hipError_t ihipGraphAddKernelNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
const hipKernelNodeParams* pNodeParams) {
if (pGraphNode == nullptr || graph == nullptr ||
(numDependencies > 0 && pDependencies == nullptr) || pNodeParams == nullptr ||
pNodeParams->func == nullptr) {
pNodeParams->func == nullptr || pNodeParams->kernelParams == nullptr) {
return hipErrorInvalidValue;
}
if (!ihipGraph::isGraphValid(graph)) {