SWDEV-276319 - Added missing null check
Change-Id: I0fcaa55b9a793cbb6c1d2f3022edf288dabea757
[ROCm/clr commit: 88186db4cd]
Этот коммит содержится в:
коммит произвёл
Sarbojit Sarkar
родитель
3231b56cbc
Коммит
87862528be
@@ -1682,6 +1682,9 @@ inline hipError_t ihipMemcpyCmdEnqueue(amd::Command* command, bool isAsync = fal
|
||||
hipError_t ihipMemcpyParam3D(const HIP_MEMCPY3D* pCopy, hipStream_t stream, bool isAsync = false) {
|
||||
amd::Command* command;
|
||||
hipError_t status;
|
||||
if (pCopy == nullptr || !hip::isValid(stream)) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
if (pCopy->WidthInBytes == 0 || pCopy->Height == 0 || pCopy->Depth == 0) {
|
||||
LogPrintfInfo("Either Width :%d or Height: %d and Depth: %d is zero", pCopy->WidthInBytes,
|
||||
pCopy->Height, pCopy->Depth);
|
||||
|
||||
Ссылка в новой задаче
Block a user