Blame SOURCES/0047-lscpu-avoid-segfault-on-PowerPC-systems-with-valid-h.patch

439b44
From 4ac8e70822313b0c6b35ebf633c6e8fbca558998 Mon Sep 17 00:00:00 2001
439b44
From: Thomas Abraham <tabraham@suse.com>
439b44
Date: Thu, 24 Sep 2020 14:52:33 -0400
439b44
Subject: [PATCH 47/55] lscpu: avoid segfault on PowerPC systems with valid
439b44
 hardware configurations
439b44
439b44
ntypes greater than 1 is valid in some hardware configurations, and an assert()
439b44
on the value isn't necessary or very future proof
439b44
439b44
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1883783
439b44
Upstream: http://github.com/karelzak/util-linux/commit/cbe3304bc43b3fceb06fb6e5dd822bb59abf1b84
439b44
Signed-off-by: Karel Zak <kzak@redhat.com>
439b44
---
439b44
 sys-utils/lscpu.c | 2 --
439b44
 1 file changed, 2 deletions(-)
439b44
439b44
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
439b44
index 1aa7bff4d..748d545b6 100644
439b44
--- a/sys-utils/lscpu.c
439b44
+++ b/sys-utils/lscpu.c
439b44
@@ -369,8 +369,6 @@ static void read_physical_info_powerpc(struct lscpu_desc *desc)
439b44
 		return;
439b44
 
439b44
 	ntypes = strbe16toh(buf, 2);
439b44
-
439b44
-	assert(ntypes <= 1);
439b44
 	if (!ntypes)
439b44
 		return;
439b44
 
439b44
-- 
439b44
2.29.2
439b44