mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
slub: current is always valid
Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
parent
0937502af7
commit
88e4ccf294
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue