summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorZhongqiu Han <quic_zhonhan@quicinc.com>2025-02-19 15:27:15 +0300
committerShuah Khan <skhan@linuxfoundation.org>2025-02-19 23:48:08 +0300
commit208baa3ec9043a664d9acfb8174b332e6b17fb69 (patch)
treeba2a120607d62152e75c8e36aa760c7110a2dc59 /tools/perf/scripts/python/libxed.py
parenta64dcfb451e254085a7daee5fe51bf22959d52d3 (diff)
downloadlinux-208baa3ec9043a664d9acfb8174b332e6b17fb69.tar.xz
pm: cpupower: bench: Prevent NULL dereference on malloc failure
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>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions