SWDEV-351282 - Null check for desc.
Change-Id: I69d534b6f97442c69b66154476a2637e99c3df77
[ROCm/clr commit: cf57f20407]
This commit is contained in:
zatwierdzone przez
Jaydeepkumar Patel
rodzic
72703ab50f
commit
06501e696d
@@ -1043,6 +1043,9 @@ hipError_t hipArray3DCreate(hipArray** array,
|
||||
const HIP_ARRAY3D_DESCRIPTOR* pAllocateArray) {
|
||||
HIP_INIT_API(hipArray3DCreate, array, pAllocateArray);
|
||||
CHECK_STREAM_CAPTURE_SUPPORTED();
|
||||
if (pAllocateArray == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
HIP_RETURN(ihipArrayCreate(array, pAllocateArray, 0 /* numMipLevels */));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user