aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2023-12-04 18:23:29 +0000
committerNamhyung Kim <[email protected]>2023-12-05 18:15:10 +0000
commite2b005d6ec0e738df584190e21d2c7ada37266a0 (patch)
tree429fd5be084a244cb614eef5fff0bc62e0cd25f7 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parenttools: Disable __packed attribute compiler warning due to -Werror=attributes (diff)
downloadkernel-e2b005d6ec0e738df584190e21d2c7ada37266a0.tar.gz
kernel-e2b005d6ec0e738df584190e21d2c7ada37266a0.zip
perf metrics: Avoid segv if default metricgroup isn't set
A metric is default by having "Default" within its groups. The default metricgroup name needn't be set and this can result in segv in default_metricgroup_cmp and perf_stat__print_shadow_stats_metricgroup that assume it has a value when there is a Default metric group. To avoid the segv initialize the value to "". Fixes: 1c0e47956a8e ("perf metrics: Sort the Default metricgroup") Signed-off-by: Ian Rogers <[email protected]> Reviewed-and-tested-by: Ilkka Koskinen <[email protected]> Cc: James Clark <[email protected]> Cc: Will Deacon <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mike Leach <[email protected]> Cc: Kajol Jain <[email protected]> Cc: Kan Liang <[email protected]> Cc: John Garry <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions