SWDEV-314982 - hipStreamGetCaptureInfo seq ID ptr check

Change-Id: I84a84121d2064182f0daea22578f0fa5f94f850c


[ROCm/clr commit: 8c103bb898]
Αυτή η υποβολή περιλαμβάνεται σε:
Ajay authored and Ajay GunaShekar committed 2022-03-22 12:07:05 -04:00
1 γονέας 2a3402f063
υποβολή 993b9f790c
1 file changed
+2 -2
@@ -1261,8 +1261,8 @@ hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus* p
}
hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
*pCaptureStatus = s->GetCaptureStatus();
if (*pCaptureStatus == hipStreamCaptureStatusActive) {
pId = reinterpret_cast<unsigned long long*>(s->GetCaptureID());
if (*pCaptureStatus == hipStreamCaptureStatusActive && pId != nullptr) {
*pId = s->GetCaptureID();
}
HIP_RETURN(hipSuccess);
}