]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: avoid segfault on PowerPC systems with valid hardware configurations
authorThomas Abraham <tabraham@suse.com>
Thu, 24 Sep 2020 18:52:33 +0000 (14:52 -0400)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
commit80fcd2c802b5ae572bc844c996891c9d00bef080
treef85419f9613890a9d34b353e559a5dacef2a770e
parent3e35c9017053bc76442e856740e1383f7328ebfe
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

[kzak@redhat.com: - port this patch to new code]

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-cputype.c