diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/x86/mach/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86/mach/init.c b/src/x86/mach/init.c index a0be9b2..75404f1 100644 --- a/src/x86/mach/init.c +++ b/src/x86/mach/init.c @@ -210,7 +210,7 @@ void cpuinfo_x86_mach_init(void) { if (l2_count != 0) { l2 = calloc(l2_count, sizeof(struct cpuinfo_cache)); - if (l1d == NULL) { + if (l2 == NULL) { cpuinfo_log_error("failed to allocate %zu bytes for descriptions of %"PRIu32" L2 caches", l2_count * sizeof(struct cpuinfo_cache), l2_count); return; |