diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-08-02 18:59:28 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-08-02 19:01:09 -0300 |
commit | 70597f21f128b7dd6a2490078bea99d704b6f8c3 (patch) | |
tree | 33ed9836a3c6e2c111f60746ce1769c9eba42bd7 /drivers/parisc/dino.c | |
parent | 076c6e45215aea0de1ed34d3d5079fabeaabf5e1 (diff) |
perf session: Invalidate last_match when removing threads from rb_tree
If we receive two PERF_RECORD_EXIT for the same thread, we can end up
reusing session->last_match and trying to remove the thread twice from
the rb_tree, causing a segfault, so invalidade last_match in
perf_session__remove_thread.
Receiving two PERF_RECORD_EXIT for the same thread is a bug, but its a
harmless one if we make the tool more robust, like this patch does.
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'drivers/parisc/dino.c')
0 files changed, 0 insertions, 0 deletions