]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kmemtrace: kmemtrace_alloc() must fill type_id
authorEduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Mon, 23 Mar 2009 13:12:25 +0000 (15:12 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 3 Apr 2009 10:23:07 +0000 (12:23 +0200)
Impact: fix trace output

kmemtrace_alloc() was not filling type_id, which allowed garbage to make
it into tracing data.

Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
LKML-Reference: <284dba2732a144849d5aa82258fe0de2ad8dcb0b.1237813499.git.eduard.munteanu@linux360.ro>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/kmemtrace.c

index 4f7b5db5dd06d281edccf0254d07348f120afffa..ae259f04ee39be783b915b42f6d2847f3bdd3d84 100644 (file)
@@ -52,6 +52,7 @@ static inline void kmemtrace_alloc(enum kmemtrace_type_id type_id,
        tracing_generic_entry_update(&entry->ent, 0, 0);
 
        entry->ent.type = TRACE_KMEM_ALLOC;
+       entry->type_id = type_id;
        entry->call_site = call_site;
        entry->ptr = ptr;
        entry->bytes_req = bytes_req;