From cb4d39ff41ea8bcfc7ec2b36db68c72f8c21c3c9 Mon Sep 17 00:00:00 2001 From: Thomas Abraham Date: Thu, 24 Sep 2020 14:52:33 -0400 Subject: [PATCH] lscpu: avoid segfault on PowerPC systems with valid hardware configurations 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 ca085b665a..90c475a1f4 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.47.2