ext4: add ext4_mb_unload_buddy in the error path
authorSalman Qazi <sqazi@google.com>
Fri, 1 Jun 2012 03:51:27 +0000 (23:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 1 Jun 2012 03:51:27 +0000 (23:51 -0400)
commit02b7831019ea4e7994968c84b5826fa8b248ffc8
tree929419054f15d2582d2b977505f55ec421e39549
parent79906964a187c405db72a3abc60eb9b50d804fbc
ext4: add ext4_mb_unload_buddy in the error path

ext4_free_blocks fails to pair an ext4_mb_load_buddy with a matching
ext4_mb_unload_buddy when it fails a memory allocation.

Signed-off-by: Salman Qazi <sqazi@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/mballoc.c