aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 250062c66ec5..2cf39826d4f0 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1220,8 +1220,8 @@ static unsigned long kmem_cache_flags(unsigned long object_size,
1220 /* 1220 /*
1221 * Enable debugging if selected on the kernel commandline. 1221 * Enable debugging if selected on the kernel commandline.
1222 */ 1222 */
1223 if (slub_debug && (!slub_debug_slabs || 1223 if (slub_debug && (!slub_debug_slabs || (name &&
1224 !strncmp(slub_debug_slabs, name, strlen(slub_debug_slabs)))) 1224 !strncmp(slub_debug_slabs, name, strlen(slub_debug_slabs)))))
1225 flags |= slub_debug; 1225 flags |= slub_debug;
1226 1226
1227 return flags; 1227 return flags;