diff options
| author | Ian Rogers <irogers@google.com> | 2025-12-04 00:47:01 +0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-12-04 11:36:14 +0300 |
| commit | a0a4173631bfcfd3520192c0a61cf911d6a52c3a (patch) | |
| tree | ad012fd6b8169e7a1af4d9e3ccf58ae4301937d9 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | 6744c0b182c1f371135bc3f4e62b96ad884c9f89 (diff) | |
| download | linux-a0a4173631bfcfd3520192c0a61cf911d6a52c3a.tar.xz | |
libperf cpumap: Fix perf_cpu_map__max for an empty/NULL map
Passing an empty map to perf_cpu_map__max triggered a SEGV. Explicitly
test for the empty map.
Reported-by: Ingo Molnar <mingo@kernel.org>
Closes: https://lore.kernel.org/linux-perf-users/aSwt7yzFjVJCEmVp@gmail.com/
Tested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions
