SWDEV-403382 - param sanity check

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ibddb2be7d0543676ed9aed71ebb3f5877662c9ae
Tento commit je obsažen v:
sdashmiz
2023-06-20 10:50:03 -04:00
odevzdal Shadi Dashmiz
rodič 0a3d4bd4d4
revize 5f93a59798
+2 -2
Zobrazit soubor
@@ -201,7 +201,7 @@ hipError_t hipSignalExternalSemaphoresAsync(
unsigned int numExtSems, hipStream_t stream )
{
HIP_INIT_API(hipSignalExternalSemaphoresAsync, extSemArray, paramsArray, numExtSems, stream);
if (extSemArray == nullptr || paramsArray == nullptr) {
if (extSemArray == nullptr || paramsArray == nullptr || !hip::isValid(stream)) {
HIP_RETURN(hipErrorInvalidValue);
}
hip::Stream* hip_stream = hip::getStream(stream);
@@ -233,7 +233,7 @@ hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t* extSemAr
{
HIP_INIT_API(hipWaitExternalSemaphoresAsync, extSemArray, paramsArray, numExtSems,
stream);
if (extSemArray == nullptr || paramsArray == nullptr) {
if (extSemArray == nullptr || paramsArray == nullptr || !hip::isValid(stream)) {
HIP_RETURN(hipErrorInvalidValue);
}
hip::Stream* hip_stream = hip::getStream(stream);