mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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>
This commit is contained in:
parent
2e7a5fc8d4
commit
42c80139ea
@ -4904,7 +4904,7 @@ int pevent_register_event_handler(struct pevent *pevent,
|
||||
not_found:
|
||||
/* Save for later use. */
|
||||
handle = malloc_or_die(sizeof(*handle));
|
||||
memset(handle, 0, sizeof(handle));
|
||||
memset(handle, 0, sizeof(*handle));
|
||||
handle->id = id;
|
||||
if (event_name)
|
||||
handle->event_name = strdup(event_name);
|
||||
|
Loading…
Reference in New Issue
Block a user