linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix segfault in perf probe
@ 2013-03-12  9:02 Ananth N Mavinakayanahalli
  2013-03-12  9:46 ` Srikar Dronamraju
  2013-03-18 10:56 ` [tip:perf/urgent] perf probe: Fix segfault tip-bot for Ananth N Mavinakayanahalli
  0 siblings, 2 replies; 3+ messages in thread
From: Ananth N Mavinakayanahalli @ 2013-03-12  9:02 UTC (permalink / raw)
  To: acme; +Cc: lkml, Srikar Dronamraju

From: Ananth N Mavinakayanahalli <ananth@in.ibm.com>

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@in.ibm.com>

---
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;
 	}
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-18 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12  9:02 [PATCH] Fix segfault in perf probe Ananth N Mavinakayanahalli
2013-03-12  9:46 ` Srikar Dronamraju
2013-03-18 10:56 ` [tip:perf/urgent] perf probe: Fix segfault tip-bot for Ananth N Mavinakayanahalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).