diff options
author | Josef Bacik <jbacik@fb.com> | 2015-03-24 09:57:49 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-03-24 12:10:26 -0300 |
commit | deab6f55a2fe6fe044af61c9aad6a8e90cda6499 (patch) | |
tree | 131825bb2a4620b0d06341cca9934c5603244c60 /lib/iomap.c | |
parent | 18425f13a0890ac1e88a64276771c1ae10030b4a (diff) | |
download | op-kernel-dev-deab6f55a2fe6fe044af61c9aad6a8e90cda6499.zip op-kernel-dev-deab6f55a2fe6fe044af61c9aad6a8e90cda6499.tar.gz |
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 <jbacik@fb.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
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 <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'lib/iomap.c')
0 files changed, 0 insertions, 0 deletions