slub: current is always valid
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 22 Jun 2008 22:58:37 +0000 (02:58 +0400)
committerPekka Enberg <penberg@cs.helsinki.fi>
Tue, 15 Jul 2008 17:36:01 +0000 (20:36 +0300)
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c

index b3f2e713cdf13d0b17509ed83eadf1117d107637..488400d107007bfc60b63050cf8b2969d4e9f952 100644 (file)
--- 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));