power: fix frequency list buffer validation
authorKevin Traynor <ktraynor@redhat.com>
Wed, 6 Feb 2019 12:19:06 +0000 (12:19 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Mar 2019 13:58:27 +0000 (14:58 +0100)
commite1e4dafbc7b83c695eb745fe033f5c1e9e344454
treef8e65cc8f2d326d19b215a46da0d690f03dc9d1b
parent6a556bd6caa1e06942391e21e68b81c56e52308f
power: fix frequency list buffer validation

The frequency list buffer was already validated in
power_acpi_cpufreq_freqs(), so the newly added check was redundant.
To keep consistency with power_pstate_cpufreq_freqs(), remove the
original check and update the log message.

Fixes: 2e6ccdb4e088 ("power: fix frequency list to handle null buffer")
Cc: stable@dpdk.org
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
lib/librte_power/power_acpi_cpufreq.c