SWDEV-560304 - Fix segfault with invalid stream (#1360)
Este cometimento está contido em:
1 ascendente
5850d5b973
cometimento
f332888366
1 ficheiro modificado
+4
@@ -936,6 +936,10 @@ hipError_t hipStreamGetAttribute(hipStream_t stream, hipStreamAttrID attr,
|
||||
hipError_t hipStreamCopyAttributes(hipStream_t dst, hipStream_t src) {
|
||||
HIP_INIT_API(hipStreamCopyAttributes, dst, src);
|
||||
|
||||
if (!hip::isValid(src) || !hip::isValid(dst)) {
|
||||
HIP_RETURN(hipErrorInvalidResourceHandle);
|
||||
}
|
||||
|
||||
getStreamPerThread(src);
|
||||
getStreamPerThread(dst);
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador