mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
fix: KW issue with dereference in function call that may return null
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6946dd561f
commit
1195578d96
@@ -28,6 +28,7 @@ uint32_t SVMAllocsManager::UnifiedMemoryProperties::getRootDeviceIndex() const {
|
||||
if (device) {
|
||||
return device->getRootDeviceIndex();
|
||||
}
|
||||
UNRECOVERABLE_IF(rootDeviceIndices.begin() == nullptr);
|
||||
return *rootDeviceIndices.begin();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user