SWDEV-314982 - hipStreamGetCaptureInfo seq ID ptr check

Change-Id: I84a84121d2064182f0daea22578f0fa5f94f850c
This commit is contained in:
Ajay
2022-03-17 19:56:16 +00:00
committed by Ajay GunaShekar
parent 2ef41ff5be
commit 8c103bb898
+2 -2
View File
@@ -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);
}