lkml.org 
[lkml]   [2012]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 08/15] perf/events: Correct size given to memset
    On Fri, Apr 06, 2012 at 12:47:59AM +0200, Frederic Weisbecker wrote:
    > From: Julia Lawall <julia@diku.dk>
    >
    > This is a forward port of commit 5660ce34241ab
    > perf tools: Correct size given to memset
    > written by Julia Lawall and forward ported by Steven Rostedt.
    >
    > Signed-off-by: Julia Lawall <julia@diku.dk>
    > 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>
    > ---
    > 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 f012395..16da20c 100644
    > --- a/tools/lib/traceevent/event-parse.c
    > +++ b/tools/lib/traceevent/event-parse.c
    > @@ -2076,7 +2076,7 @@ process_fields(struct event_format *event, struct print_flag_sym **list, char **
    > goto out_free;
    >
    > field = malloc_or_die(sizeof(*field));
    > - memset(field, 0, sizeof(field));
    > + memset(field, 0, sizeof(*field));

    This one is already upstream, you can drop it: 5660ce34241ab

    --
    Regards/Gruss,
    Boris.


    \
     
     \ /
      Last update: 2012-04-06 13:27    [W:0.021 / U:32.288 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site