commit | 85a3e21b9af3e8744a0aa7ecaaf7cf4fbee9fcd5 | [log] [tgz] |
---|---|---|
author | Marat Dukhan <marat@fb.com> | Wed Oct 18 15:50:05 2017 -0700 |
committer | Marat Dukhan <marat@fb.com> | Wed Oct 18 15:50:05 2017 -0700 |
tree | e0936ece338edaff9b759d1fc150be8db5c41b43 | |
parent | 2b4e2c59c17c738e9ed27d8b35f6786eca5777cc [diff] |
Fix typo in initialization on Mac/x86
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 @@ 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;