aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2007-11-14 19:58:35 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-14 21:45:36 -0500
commitcc550defe9790b495c96fafabc5a6528dc586f24 (patch)
treee88689d55d9897c96287a6e92d0123ac8d59c29b /mm/slab.c
parente9b5a495dc23f58ecaa9517f1ff4dd9ac724935f (diff)
slab: fix typo in allocation failure handling
This patch fixes wrong array index in allocation failure handling. Cc: Pekka Enberg <penberg@cs.helsinki.fi> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index cfa6be4e378..c31cd3682a0 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1043,7 +1043,7 @@ static struct array_cache **alloc_alien_cache(int node, int limit)
1043 } 1043 }
1044 ac_ptr[i] = alloc_arraycache(node, limit, 0xbaadf00d); 1044 ac_ptr[i] = alloc_arraycache(node, limit, 0xbaadf00d);
1045 if (!ac_ptr[i]) { 1045 if (!ac_ptr[i]) {
1046 for (i--; i <= 0; i--) 1046 for (i--; i >= 0; i--)
1047 kfree(ac_ptr[i]); 1047 kfree(ac_ptr[i]);
1048 kfree(ac_ptr); 1048 kfree(ac_ptr);
1049 return NULL; 1049 return NULL;