SWDEV-374380 - hipGraphAddMemcpyNode1D errorCheck

Change-Id: I50501de139e3898783c1cc9c91c5ed3ed2564f3b


[ROCm/clr commit: 236a725d67]
This commit is contained in:
pghafari authored and Payam Ghafari committed 2023-01-17 07:49:23 -05:00
1 parent f94a34e128
commit 7261e8fa39
1 file changed
+1 -1
+1 -1
View File
@@ -103,7 +103,7 @@ hipError_t ihipGraphAddMemcpyNode1D(hipGraphNode_t* pGraphNode, hipGraph_t graph
const hipGraphNode_t* pDependencies, size_t numDependencies,
void* dst, const void* src, size_t count, hipMemcpyKind kind) {
if (pGraphNode == nullptr || graph == nullptr ||
(numDependencies > 0 && pDependencies == nullptr)) {
(numDependencies > 0 && pDependencies == nullptr) || count ==0) {
return hipErrorInvalidValue;
}
hipError_t status = hipGraphMemcpyNode1D::ValidateParams(dst, src, count, kind);