Files
xen/tools/misc
Jan Beulich 748be9a974 xenpm: sanitize allocations in show_cpufreq_para_by_cpuid()
malloc(), when passed zero size, may return NULL (the behavior is
implementation defined). Mirror the ->gov_num check to the other two
allocations as well. Don't chance then actually using a NULL in
print_cpufreq_para().

Fixes: 75e06d089d ("xenpm: add cpu frequency control interface, through which user can")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
master commit: 6c0dc87bb0
master date: 2025-03-26 12:30:57 +0100
2025-03-27 15:04:48 +01:00
..
2018-09-07 15:06:00 +01:00
2017-10-05 09:27:32 -04:00
2023-06-13 14:42:14 +02:00
2024-05-20 17:01:20 +01:00
2018-01-25 12:27:44 +01:00
2018-10-08 15:20:18 +01:00