From: Josef Bacik Date: Tue, 24 Mar 2015 13:57:49 +0000 (-0400) Subject: tools lib traceevent: Handle NULL comm name X-Git-Tag: omap-for-v4.2/o2_dc~146^2~57^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deab6f55a2fe6fe044af61c9aad6a8e90cda6499;p=pandora-kernel.git tools lib traceevent: Handle NULL comm name It is possible that a pid has no associated comm attached to it, although it can still be passed to pevent_register_comm(). But if comm is NULL, it will cause strdup() to segfault. To prevent this from happening, if comm is NULL use the default "<...>" name for the pid. Signed-off-by: Josef Bacik Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20150324135922.549965495@goodmis.org Link: http://lkml.kernel.org/p/1403799732-30308-1-git-send-email-jbacik@fb.com Signed-off-by: Steven Rostedt Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed