SWDEV-318125 - hipGraphHostNodeGetParams check node object

Change-Id: I16ab13c007dd162f906344447b8bfcb9d5217562
This commit is contained in:
Ajay
2022-03-03 19:00:11 +00:00
committed by Ajay GunaShekar
orang tua 3ffbcd0520
melakukan de28c4467f
+1 -1
Melihat File
@@ -1659,7 +1659,7 @@ hipError_t hipGraphAddHostNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
hipError_t hipGraphHostNodeGetParams(hipGraphNode_t node, hipHostNodeParams* pNodeParams) {
HIP_INIT_API(hipGraphHostNodeGetParams, node, pNodeParams);
if (node == nullptr || pNodeParams == nullptr) {
if (node == nullptr || pNodeParams == nullptr || !hipGraphNode::isNodeValid(node)) {
HIP_RETURN(hipErrorInvalidValue);
}
reinterpret_cast<hipGraphHostNode*>(node)->GetParams(pNodeParams);