diff options
author | Kautuk Consul <consul.kautuk@gmail.com> | 2012-01-13 02:20:08 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-13 05:13:10 +0100 |
commit | f1db7afd917e54711798c64d78f8f5fb090f950d (patch) | |
tree | 4104640edda22dad55c1db4d828ba21bfd0b4b85 /arch/powerpc | |
parent | mm: rearrange putback_inactive_pages (diff) | |
download | linux-f1db7afd917e54711798c64d78f8f5fb090f950d.tar.xz linux-f1db7afd917e54711798c64d78f8f5fb090f950d.zip |
mm/vmalloc.c: eliminate extra loop in pcpu_get_vm_areas error path
If either of the vas or vms arrays are not properly kzalloced, then the
code jumps to the err_free label.
The err_free label runs a loop to check and free each of the array members
of the vas and vms arrays which is not required for this situation as none
of the array members have been allocated till this point.
Eliminate the extra loop we have to go through by introducing a new label
err_free2 and then jumping to it.
[akpm@linux-foundation.org: remove now-unneeded tests]
Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions