diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-11-15 00:58:35 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-15 02:45:36 (GMT) |
commit | cc550defe9790b495c96fafabc5a6528dc586f24 (patch) | |
tree | e88689d55d9897c96287a6e92d0123ac8d59c29b | |
parent | e9b5a495dc23f58ecaa9517f1ff4dd9ac724935f (diff) | |
download | linux-fsl-qoriq-cc550defe9790b495c96fafabc5a6528dc586f24.tar.xz |
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>
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1043,7 +1043,7 @@ static struct array_cache **alloc_alien_cache(int node, int limit) } ac_ptr[i] = alloc_arraycache(node, limit, 0xbaadf00d); if (!ac_ptr[i]) { - for (i--; i <= 0; i--) + for (i--; i >= 0; i--) kfree(ac_ptr[i]); kfree(ac_ptr); return NULL; |