diff --git a/mm/slub.c b/mm/slub.c index b3f2e713cdf13d0b17509ed83eadf1117d107637..488400d107007bfc60b63050cf8b2969d4e9f952 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -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));