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

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, ...@@ -411,7 +411,7 @@ static void set_track(struct kmem_cache *s, void *object,
if (addr) { if (addr) {
p->addr = addr; p->addr = addr;
p->cpu = smp_processor_id(); p->cpu = smp_processor_id();
p->pid = current ? current->pid : -1; p->pid = current->pid;
p->when = jiffies; p->when = jiffies;
} else } else
memset(p, 0, sizeof(struct track)); memset(p, 0, sizeof(struct track));
......
Markdown is supported
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