]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: make min/max freq arrays usage more robust
authorKarel Zak <kzak@redhat.com>
Thu, 1 Jun 2017 10:15:23 +0000 (12:15 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 1 Jun 2017 10:15:23 +0000 (12:15 +0200)
commit0145d84a381fc2fcd7d37e0dbf3d9dff69609ecd
tree047497c25d934b284358fe35160e8692ec7ae1f5
parent8bc5195be9e5f5d26d8d3c4f71681387b13da3d8
lscpu: make min/max freq arrays usage more robust

The array members may be NULL on some architectures (e.g. AMD). Let's
be paranoid and check for the NULL independently on present/online
masks.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1457744
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c