From: Alexey Dobriyan Date: Sun, 22 Jun 2008 22:58:37 +0000 (+0400) Subject: slub: current is always valid X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88e4ccf294ca62c2da998012a83533ce150c8dce;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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));