From f7e04a897b4ed9638eae5b06cba4e4d71d01789e Mon Sep 17 00:00:00 2001 From: "Mrozek, Michal" Date: Fri, 12 Jul 2019 14:31:03 +0200 Subject: [PATCH] Add unrecoverable for returned pointer. Change-Id: I3d9f923e8a9b6fbdba752ecec8dfff525e0cabd2 Signed-off-by: Mrozek, Michal --- runtime/memory_manager/unified_memory_manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/memory_manager/unified_memory_manager.cpp b/runtime/memory_manager/unified_memory_manager.cpp index 04b2765091..a572909dd7 100644 --- a/runtime/memory_manager/unified_memory_manager.cpp +++ b/runtime/memory_manager/unified_memory_manager.cpp @@ -96,6 +96,7 @@ void *SVMAllocsManager::createUnifiedMemoryAllocation(size_t size, const Unified if (DebugManager.flags.AllocateSharedAllocationsWithCpuAndGpuStorage.get()) { if (memoryProperties.memoryType == InternalMemoryType::SHARED_UNIFIED_MEMORY) { auto unifiedMemoryPointer = createUnifiedAllocationWithDeviceStorage(size, {}); + UNRECOVERABLE_IF(unifiedMemoryPointer == nullptr); auto unifiedMemoryAllocation = this->getSVMAlloc(unifiedMemoryPointer); unifiedMemoryAllocation->memoryType = memoryProperties.memoryType; return unifiedMemoryPointer;