Commit 1c2c5d12 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] fix bug in slab.c debugging

Patch from John Levon <levon@movementarian.org>

Looked like this condition was previously always false ...
parent 69ce2cbd
......@@ -1643,7 +1643,7 @@ cache_alloc_debugcheck_after(kmem_cache_t *cachep,
if (cachep->ctor && cachep->flags & SLAB_POISON) {
unsigned long ctor_flags = SLAB_CTOR_CONSTRUCTOR;
if (!flags & __GFP_WAIT)
if (!(flags & __GFP_WAIT))
ctor_flags |= SLAB_CTOR_ATOMIC;
cachep->ctor(objp, cachep, ctor_flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment