Re: [dpdk-dev] [PATCH] lib/power: fix return code to unsigned value

2019-01-14 Thread Thomas Monjalon
07/01/2019 15:40, David Hunt: > The power_pstate_cpufreq_freqs() function was returning -1 in an > unsigned int, causing buffer over-runs when the results were being > processed. This function should be returning zero for all error > conditions, similar to it's acpi relation, power_acpi_cpufreq_fre

[dpdk-dev] [PATCH] lib/power: fix return code to unsigned value

2019-01-07 Thread David Hunt
The power_pstate_cpufreq_freqs() function was returning -1 in an unsigned int, causing buffer over-runs when the results were being processed. This function should be returning zero for all error conditions, similar to it's acpi relation, power_acpi_cpufreq_freqs(). Fixes: e6c6dc0f96c8 ("power: ad