diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-04-05 18:48:05 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-04-25 07:35:44 -0400 |
commit | 42c80139eaa0feebf961c9792fa9eef76a3ce663 (patch) | |
tree | 5a9bc31909782f2db9d1c5f4024db19f75c28dbe /tools/lib/traceevent | |
parent | 2e7a5fc8d40be9654f589dad467515c1688ccf6b (diff) |
parse-event: Fix memset pointer size bug in handle
Fix memset(ptr, 0, sizeof(ptr)) to memset(ptr, 0, sizeof(*ptr))
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools/lib/traceevent')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 876b2720253d..ec1317483010 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -4904,7 +4904,7 @@ int pevent_register_event_handler(struct pevent *pevent, | |||
4904 | not_found: | 4904 | not_found: |
4905 | /* Save for later use. */ | 4905 | /* Save for later use. */ |
4906 | handle = malloc_or_die(sizeof(*handle)); | 4906 | handle = malloc_or_die(sizeof(*handle)); |
4907 | memset(handle, 0, sizeof(handle)); | 4907 | memset(handle, 0, sizeof(*handle)); |
4908 | handle->id = id; | 4908 | handle->id = id; |
4909 | if (event_name) | 4909 | if (event_name) |
4910 | handle->event_name = strdup(event_name); | 4910 | handle->event_name = strdup(event_name); |