summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/strlist.c
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2013-03-12 14:32:17 +0530
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-03-13 17:00:33 -0300
commit79146a69c8bc3f28e51c5267633abc6babf47a31 (patch)
treeec292ba6034b2c9abf6a62a4a3d24a5e97845140 /tools/perf/util/strlist.c
parentb9e8c37220c80e78289a1e87b50c09418eb59a7e (diff)
downloadtalos-op-linux-79146a69c8bc3f28e51c5267633abc6babf47a31.tar.gz
talos-op-linux-79146a69c8bc3f28e51c5267633abc6babf47a31.zip
perf probe: Fix segfault
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> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/20130312090217.GC4668@in.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/strlist.c')
-rw-r--r--tools/perf/util/strlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/strlist.c b/tools/perf/util/strlist.c
index 55433aa42c8f..eabdce0a2daa 100644
--- a/tools/perf/util/strlist.c
+++ b/tools/perf/util/strlist.c
@@ -143,7 +143,7 @@ struct strlist *strlist__new(bool dupstr, const char *list)
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;
}
OpenPOWER on IntegriCloud