Commit 88e4ccf2 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Pekka Enberg
Browse files

slub: current is always valid


Acked-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 0937502a
......@@ -411,7 +411,7 @@ static void set_track(struct kmem_cache *s, void *object,
if (addr) {
p->addr = addr;
p->cpu = smp_processor_id();
p->pid = current ? current->pid : -1;
p->pid = current->pid;
p->when = jiffies;
} else
memset(p, 0, sizeof(struct track));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment