summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-04-22 13:56:11 +0900
committerJiri Olsa <jolsa@kernel.org>2014-04-24 16:33:08 +0200
commitc481f9301183260a78e55fa4d70d977b68c81846 (patch)
tree711a90b3c494a19dab524c8482b20eff2d4ee665 /tools/perf/scripts/python/sched-migration.py
parent3186b6815d49b5e0defbd884223da3778edb59fc (diff)
perf ui/tui: Fix off-by-one in hist_browser__update_nr_entries()
The nr_entries variable is increased inside the loop in the function but it always count the first entry regardless of it's filtered or not; caused an off-by-one error. It'd become a problem especially there's no entry at all - it'd get a segfault during referencing a NULL pointer. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1398327843-31845-9-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions