summaryrefslogtreecommitdiff
path: root/tools/perf/util/map_symbol.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2023-09-13 21:42:32 -0700
committerNamhyung Kim <namhyung@kernel.org>2023-09-15 16:46:40 -0700
commit21ce931e55c19c1f74378b4836d9dae631da0e62 (patch)
tree9a6b27a5a419afbc65d82639ab4a9f8c4c406eda /tools/perf/util/map_symbol.h
parent999b81b907ea92fa759e426591068244d9635496 (diff)
perf symbol: Avoid an undefined behavior warning
The node (nd) may be NULL and pointer arithmetic on NULL is undefined behavior. Move the computation of next below the NULL check on the node. Signed-off-by: Ian Rogers <irogers@google.com> Cc: James Clark <james.clark@arm.com> Link: https://lore.kernel.org/r/20230914044233.1550195-1-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/map_symbol.h')
0 files changed, 0 insertions, 0 deletions