aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-05-10 21:04:52 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-05-11 16:03:13 +0000
commit2af1280b190c408bd590704806dd0d2d1cf52db5 (patch)
tree7b4f50271df04a6c7def75141b718789812da6a3 /drivers/pci/controller/pci-host-common.c
parentperf annotate: Fix segfault on sample histogram (diff)
downloadkernel-2af1280b190c408bd590704806dd0d2d1cf52db5.tar.gz
kernel-2af1280b190c408bd590704806dd0d2d1cf52db5.zip
perf annotate-data: Ensure the number of type histograms
Arnaldo reported that there is a case where nr_histograms and histograms don't agree each other. It ended up in a segfault trying to access a NULL histograms array. Let's make sure to update the nr_histograms when the histograms array is changed. Reported-by: Arnaldo Carvalho de Melo <[email protected]> Reviewed-by: Ian Rogers <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions