SWDEV-405485 - move the param validation

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ic3a27c47a88954da866a91494bcfb8721f33ad2b


[ROCm/clr commit: 2cdaf7e80f]
This commit is contained in:
sdashmiz
2023-06-21 14:43:57 -04:00
کامیت شده توسط Maneesh Gupta
والد 867d1fc66f
کامیت 6c174f79fa
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
@@ -389,6 +389,7 @@ hipError_t hipEventRecord_common(hipEvent_t event, hipStream_t stream) {
if (event == nullptr) {
return hipErrorInvalidHandle;
}
getStreamPerThread(stream);
if (!hip::isValid(stream)) {
return hipErrorContextIsDestroyed;
}