commit | 058612a6f773824b6e53629855c3d811ce7906be | [log] [tgz] |
---|---|---|
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | Tue Jul 21 21:16:45 2020 -0400 |
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | Thu Aug 06 09:26:28 2020 -0300 |
tree | 2d753f1b56144a380f743712238d705e3fb16380 | |
parent | 9dc7dc75b179d341d246ce7a9b21e93ab3acd8f2 [diff] |
libtraceevent: Handle strdup() error in parse_option_name() Modified internal function parse_option_name() to return error and handle that error in function callers in case strdup() fails. Link: https://lore.kernel.org/r/CAM9d7cizjF+fbK7YzmsBDgrx__4YAOsmEq67D3sWET8FF+YdFA@mail.gmail.com Link: https://lore.kernel.org/linux-trace-devel/20200714103027.2477584-3-tz.stoyanov@gmail.com Link: https://lore.kernel.org/linux-trace-devel/20200716092014.2613403-3-tz.stoyanov@gmail.com Suggested-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: linux-trace-devel@vger.kernel.org Link: http://lore.kernel.org/lkml/20200722011754.869289038@goodmis.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>