瀏覽代碼

Merge branches 'topic/slab/fixes' and 'topic/slub/fixes' into for-linus

Pekka Enberg 16 年之前
父節點
當前提交
f58914e414
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mm/slub.c

+ 1 - 1
mm/slub.c

@@ -1996,7 +1996,7 @@ static struct kmem_cache_cpu *alloc_kmem_cache_cpu(struct kmem_cache *s,
 static void free_kmem_cache_cpu(struct kmem_cache_cpu *c, int cpu)
 {
 	if (c < per_cpu(kmem_cache_cpu, cpu) ||
-			c > per_cpu(kmem_cache_cpu, cpu) + NR_KMEM_CACHE_CPU) {
+			c >= per_cpu(kmem_cache_cpu, cpu) + NR_KMEM_CACHE_CPU) {
 		kfree(c);
 		return;
 	}