]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix inode leak on kmalloc failure in tree-log.c
authorFilipe David Borba Manana <fdmanana@gmail.com>
Sun, 4 Aug 2013 18:58:57 +0000 (19:58 +0100)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:53 +0000 (08:04 -0400)
commit6cb8c073cc2c8cebc024c9b4cb682a878b804b08
treeb1dea569df4e30a89fe6b95b1adc2c26ade2f4f3
parentc2d04bc5eb6ee392331ffaf5fb171add94adfab0
Btrfs: fix inode leak on kmalloc failure in tree-log.c

In tree-log.c:replay_one_name(), if memory allocation for
the name fails, ensure we iput the dir inode we got before
before we return.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-log.c