diff --git a/src/detection/gpu/gpu_apple.c b/src/detection/gpu/gpu_apple.c index c63974d1f..be74022c0 100644 --- a/src/detection/gpu/gpu_apple.c +++ b/src/detection/gpu/gpu_apple.c @@ -53,7 +53,7 @@ static const char* detectFrequency(FFGPUResult* gpu) return "\"pmgr\" should conform to \"AppleARMIODevice\""; FF_CFTYPE_AUTO_RELEASE CFDataRef freqProperty = (CFDataRef) IORegistryEntryCreateCFProperty(entryDevice, CFSTR("voltage-states9-sram"), kCFAllocatorDefault, kNilOptions); - if (CFGetTypeID(freqProperty) != CFDataGetTypeID()) + if (!freqProperty || CFGetTypeID(freqProperty) != CFDataGetTypeID()) return "\"voltage-states9-sram\" in \"pmgr\" is not found"; // voltage-states5-sram stores supported pairs of gpu from the lowest to the highest