File lscpu-avoid-segfault-on-PowerPC-systems-with-valid-h.patch of Package python-libmount.31381

From cbe3304bc43b3fceb06fb6e5dd822bb59abf1b84 Mon Sep 17 00:00:00 2001
From: Thomas Abraham <tabraham@suse.com>
Date: Thu, 24 Sep 2020 14:52:33 -0400
Subject: [PATCH] lscpu: avoid segfault on PowerPC systems with valid hardware
 configurations
References: bsc#1175623

ntypes greater than 1 is valid in some hardware configurations, and an assert()
on the value isn't necessary or very future proof
---
 sys-utils/lscpu.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index ca085b665..90c475a1f 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -440,8 +440,6 @@ static void read_physical_info_powerpc(struct lscpu_desc *desc)
 		return;
 
 	ntypes = strbe16toh(buf, 2);
-
-	assert(ntypes <= 1);
 	if (!ntypes)
 		return;
 
-- 
2.26.2

openSUSE Build Service is sponsored by