mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
slab: fix typo in allocation failure handling
This patch fixes wrong array index in allocation failure handling. Cc: Pekka Enberg <[email protected]> Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e9b5a495dc
commit
cc550defe9
1 changed files with 1 additions and 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue