aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorXiaomeng Tong <[email protected]>2022-03-27 13:20:28 +0800
committerPatrik Jakobsson <[email protected]>2022-03-29 11:33:11 +0200
commitbdef417d84536715145f6dc9cc3275c46f26295a (patch)
treeb52cd89e558188ac4235c5f29f81c337d28ff4dd /tools/perf/scripts/python/flamegraph.py
parent77ef271faee9c3be65fc5e5dcd66c45d4ffbe494 (diff)
gma500: fix an incorrect NULL check on list iterator
The bug is here: return crtc; The list iterator value 'crtc' will *always* be set and non-NULL by list_for_each_entry(), so it is incorrect to assume that the iterator value will be NULL if the list is empty or no element is found. To fix the bug, return 'crtc' when found, otherwise return NULL. Cc: [email protected] fixes: 89c78134cc54d ("gma500: Add Poulsbo support") Signed-off-by: Xiaomeng Tong <[email protected]> Signed-off-by: Patrik Jakobsson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions