SWDEV-405485 - move the param validation

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ic3a27c47a88954da866a91494bcfb8721f33ad2b
Этот коммит содержится в:
sdashmiz
2023-06-21 14:43:57 -04:00
коммит произвёл Maneesh Gupta
родитель cfc10d0e1e
Коммит 2cdaf7e80f
2 изменённых файлов: 5 добавлений и 4 удалений
+1
Просмотреть файл
@@ -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;
}