SWDEV-403382 - param sanity check
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: Ibddb2be7d0543676ed9aed71ebb3f5877662c9ae
This commit is contained in:
1 والد
0a3d4bd4d4
کامیت
5f93a59798
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user