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

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