Skip to contentSkip to conversation

typo in slab.c debug ?

PATCH New John Levon 1 participant 1 message Feb 24, 2003 Memory management

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 typo in slab.c debug ?

Looked like this condition was previously always false ...

Not tested or anything ... 2.5.62

john

mm/slab.c +1 -1
@@ -1643,7 +1643,7 @@
 	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);