]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix an error handling path in btrfs_rename()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 12 Dec 2022 20:14:17 +0000 (21:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:00:46 +0000 (22:00 +0200)
commit6d05a1a7a484f1ff1459c4f5b853d94f839b26b0
tree94429cd0ce922cf13bc94a2f6f76beb0257b7d79
parent5aaa45025f9f567f00d516ddec0e575e88130737
btrfs: fix an error handling path in btrfs_rename()

commit abe3bf7425fb695a9b37394af18b9ea58a800802 upstream.

If new_whiteout_inode() fails, some resources need to be freed.
Add the missing goto to the error handling path.

Fixes: ab3c5c18e8fa ("btrfs: setup qstr from dentrys using fscrypt helper")
Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/inode.c