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;