]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit2bac325ea8f117636e6601e66a67d2df58974610
treeb1dea569df4e30a89fe6b95b1adc2c26ade2f4f3
parent116e0024c453dfdfacc9278f485dabc9c63a4ac4
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