SWDEV-485866 - Return OOM if stream creation fails due to insufficient memory.

Change-Id: I4e57ecc81921bde274bb6a4e0890f0fc6a17955a
This commit is contained in:
Jaydeep Patel
2024-09-19 06:59:43 +00:00
zatwierdzone przez Jaydeepkumar Patel
rodzic b977101893
commit 5ccc140e1b
4 zmienionych plików z 11 dodań i 3 usunięć
+1
Wyświetl plik
@@ -75,6 +75,7 @@ bool Stream::Create() {
void Stream::Destroy(hip::Stream* stream) {
stream->device_->RemoveStream(stream);
stream->release();
stream = nullptr;
}
// ================================================================================================