mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: Add explicit nullptr checks
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2c37db194e
commit
43c199185a
@@ -340,9 +340,11 @@ cl_int CommandQueueHw<GfxFamily>::enqueueSVMMemcpy(cl_bool blockingCopy,
|
||||
|
||||
auto pageFaultManager = context->getMemoryManager()->getPageFaultManager();
|
||||
if (dstSvmData && pageFaultManager) {
|
||||
UNRECOVERABLE_IF(dstAllocation == nullptr);
|
||||
pageFaultManager->moveAllocationToGpuDomain(reinterpret_cast<void *>(dstAllocation->getGpuAddress()));
|
||||
}
|
||||
if (srcSvmData && pageFaultManager) {
|
||||
UNRECOVERABLE_IF(srcAllocation == nullptr);
|
||||
pageFaultManager->moveAllocationToGpuDomain(reinterpret_cast<void *>(srcAllocation->getGpuAddress()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user