ext4: fix bh leak on error paths in ext4_rename() and ext4_cross_rename()
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 2 Apr 2015 20:32:15 +0000 (16:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 2 Apr 2015 20:32:15 +0000 (16:32 -0400)
commit7071b715873a66b69a9c0c5839963bb51aeae41b
tree098e6c33b06dd3ede2d81f1edd4ea1ab1ad3cf05
parent1efff914afac8a965ad63817ecf8861a927c2ace
ext4: fix bh leak on error paths in ext4_rename() and ext4_cross_rename()

Release references to buffer-heads if ext4_journal_start() fails.

Fixes: 5b61de757535 ("ext4: start handle at least possible moment when renaming files")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/namei.c