fix: add unrecoverable in case of nullptr

Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-04 09:51:36 +00:00
committed by Compute-Runtime-Automation
parent 747d44f8fc
commit 6b3ad5b3e3
2 changed files with 2 additions and 0 deletions

View File

@@ -299,6 +299,7 @@ inline std::tuple<SvmAllocationData *, GraphicsAllocation *, PtrType> getExistin
GraphicsAllocation *allocation = nullptr;
if (svmData) {
allocation = svmData->gpuAllocations.getGraphicsAllocation(rootDeviceIndex);
UNRECOVERABLE_IF(!allocation);
} else {
context->tryGetExistingMapAllocation(ptr, size, allocation);
if (allocation) {