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> |
||
|---|---|---|
| .. | ||
| Makefile | ||
| README-BENCH | ||
| benchmark.c | ||
| benchmark.h | ||
| config.h | ||
| cpufreq-bench_plot.sh | ||
| cpufreq-bench_script.sh | ||
| example.cfg | ||
| main.c | ||
| parse.c | ||
| parse.h | ||
| system.c | ||
| system.h | ||