]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 Dec 2022 18:16:47 +0000 (19:16 +0100)
commitabe3bf7425fb695a9b37394af18b9ea58a800802
treeeb39dd53caf8fd794a6a139265e81bfb24cd1c90
parentb7af0635c87ff78d6bd523298ab7471f9ffd3ce5
btrfs: fix an error handling path in btrfs_rename()

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>
fs/btrfs/inode.c