linux/tools/power
Zhongqiu Han f8d28fa305 pm: cpupower: bench: Prevent NULL dereference on malloc failure
[ Upstream commit 208baa3ec9 ]

If malloc returns NULL due to low memory, 'config' pointer can be NULL.
Add a check to prevent NULL dereference.

Link: https://lore.kernel.org/r/20250219122715.3892223-1-quic_zhonhan@quicinc.com
Signed-off-by: Zhongqiu Han <quic_zhonhan@quicinc.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-20 10:15:10 +02:00
..
acpi ACPI: tools: pfrut: Print the update_cap field during capability query 2024-04-26 19:27:34 +02:00
cpupower pm: cpupower: bench: Prevent NULL dereference on malloc failure 2025-04-20 10:15:10 +02:00
pm-graph pm-graph: Update directory handling and installation process in Makefile 2024-09-04 14:34:54 +02:00
x86 tools/power turbostat: report CoreThr per measurement interval 2025-04-10 14:39:35 +02:00