diff options
| author | Geoffrey McRae <geoffrey.mcrae@amd.com> | 2026-06-28 16:17:01 +1000 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-08 14:20:29 -0400 |
| commit | f3f622b43edc86a4ae00f521789a5d24bb71a761 (patch) | |
| tree | 87cf3241e6a0484e6cce7ec890675a8fdfa5a263 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | f4c7d8293f019bccb7211ce312559715b51c5094 (diff) | |
drm/amdgpu/mes: Add NULL check for mes_hung_db_array allocation
kcalloc but does not check for failure. If the allocation fails, the
pointer remains NULL but the function returns success. Subsequent code
using this buffer will dereference a NULL pointer, causing a kernel
oops. Add a check to return -ENOMEM if the allocation fails.
Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
