diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-06-23 00:58:37 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-07-15 19:36:01 +0200 |
commit | 88e4ccf294ca62c2da998012a83533ce150c8dce (patch) | |
tree | bfb5e1a3bc4b5f0459cdd2d7ebe6ace2593f4e9d /mm | |
parent | slub: Add check for kfree() of non slab objects. (diff) | |
download | linux-88e4ccf294ca62c2da998012a83533ce150c8dce.tar.xz linux-88e4ccf294ca62c2da998012a83533ce150c8dce.zip |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |