SWDEV-336548 - Check for valid hipArray pointer in hipFreeArray
Change-Id: Icf0d47eeca7b5dd390a6a9c53b622b3680688ca4
This commit is contained in:
zatwierdzone przez
Jaydeepkumar Patel
rodzic
3ca4c7edf7
commit
1032581ded
@@ -211,7 +211,10 @@ hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t* array, hipGraphicsRe
|
||||
myarray->isDrv = 0;
|
||||
myarray->textureType = 0;
|
||||
*array = myarray;
|
||||
|
||||
{
|
||||
amd::ScopedLock lock(hip::hipArraySetLock);
|
||||
hip::hipArraySet.insert(*array);
|
||||
}
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user