Skip to content

Commit

Permalink
slub: current is always valid
Browse files Browse the repository at this point in the history
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
  • Loading branch information
Alexey Dobriyan authored and Pekka Enberg committed Jul 15, 2008
1 parent 0937502 commit 88e4ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 88e4ccf

Please sign in to comment.