[PATCH 03/10] perf machine: Fix __machine__findnew_thread() error path

2015-01-16 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim When thread__init_map_groups() fails, a new thread should be removed from the rbtree since it's gonna be freed. Also update last match cache only if the function succeeded. Reported-by: David Ahern Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: David Ahern Cc: Ingo

[PATCH 03/10] perf machine: Fix __machine__findnew_thread() error path

2015-01-16 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim namhy...@kernel.org When thread__init_map_groups() fails, a new thread should be removed from the rbtree since it's gonna be freed. Also update last match cache only if the function succeeded. Reported-by: David Ahern dsah...@gmail.com Signed-off-by: Namhyung Kim