diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-06-26 23:53:23 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-06-26 23:53:23 +1000 |
commit | a012bd31f86cf8c818c419beec76ed16db7edff7 (patch) | |
tree | 941b130349ac61d9eb3416b8986640ba9425889f | |
parent | e3f14cc112fa17d10227373199917ca0a901d7eb (diff) | |
parent | 110b0b35212f50e8da13faba5a10769e02230e04 (diff) |
Merge commit 'slab/for-next'
-rw-r--r-- | mm/slub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c index 845fd5a9cbef..713c6937f7c9 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)); @@ -2765,6 +2765,7 @@ void kfree(const void *x) page = virt_to_head_page(x); if (unlikely(!PageSlab(page))) { + BUG_ON(!PageCompound(page)); put_page(page); return; } |