Re: [PATCH] Fix segfault in perf probe

From: Srikar Dronamraju
Date: Tue Mar 12 2013 - 05:50:52 EST


* Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx> [2013-03-12 14:32:17]:

> From: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx>
>
> Fix segfault in perf probe due to a bug introduced by commit d8639f068
> (perf tools: Stop using 'self' in strlist).
>
>
> Signed-off-by: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx>

Acked-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>

>
> ---
> Index: linus/tools/perf/util/strlist.c
> ===================================================================
> --- linus.orig/tools/perf/util/strlist.c
> +++ linus/tools/perf/util/strlist.c
> @@ -143,7 +143,7 @@ struct strlist *strlist__new(bool dupstr
> slist->rblist.node_delete = strlist__node_delete;
>
> slist->dupstr = dupstr;
> - if (slist && strlist__parse_list(slist, list) != 0)
> + if (list && strlist__parse_list(slist, list) != 0)
> goto out_error;
> }
>

--
Thanks and Regards
Srikar Dronamraju

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/