summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-03-13 01:31:31 +0300
committerNamhyung Kim <namhyung@kernel.org>2026-03-14 00:13:02 +0300
commitc969a9d7bbf46f983c4a48566b3b2f7340b02296 (patch)
tree320dc4b947a7ea2c11e5a3f0d8d2e93408876804 /scripts
parentad2f6258dd1d484f328d5cdcc1bc760419636cb2 (diff)
downloadlinux-c969a9d7bbf46f983c4a48566b3b2f7340b02296.tar.xz
perf branch: Avoid incrementing NULL
If the entry is NULL the value is meaningless so early return NULL to avoid an increment of NULL. This was happening in calls from has_stitched_lbr when running the "perf record LBR tests". The return value isn't used in that case, so returning NULL as no effect. Fixes: 42bbabed09ce ("perf tools: Add hw_idx in struct branch_stack") Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions