From: Alexey Dobriyan Date: Sun, 22 Jun 2008 22:58:37 +0000 (+0400) Subject: slub: current is always valid X-Git-Tag: firefly_0821_release~19670^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=88e4ccf294ca62c2da998012a83533ce150c8dce;p=firefly-linux-kernel-4.4.55.git slub: current is always valid Acked-by: Christoph Lameter Signed-off-by: Alexey Dobriyan Signed-off-by: Pekka Enberg --- diff --git a/mm/slub.c b/mm/slub.c index b3f2e713cdf1..488400d10700 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));