added null check
Change-Id: I7631965286bad5684bacb7e38c63031b5c691dc0
[ROCm/clr commit: 06a0de3567]
This commit is contained in:
1 parent
33377ef6d7
commit
68b845519d
1 file changed
+3
@@ -110,6 +110,9 @@ hipError_t ihipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKin
|
||||
// Skip if nothing needs writing.
|
||||
return hipSuccess;
|
||||
}
|
||||
if (dst == nullptr || src == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
amd::Command* command = nullptr;
|
||||
amd::Command::EventWaitList waitList;
|
||||
|
||||
Reference in new issue
Block a user