Commit abe3bf7
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: ab3c5c1 ("btrfs: setup qstr from dentrys using fscrypt helper")
Reviewed-by: Sweet Tea Dorminy <[email protected]>
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent b7af063 commit abe3bf7
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9377 | 9377 | | |
9378 | 9378 | | |
9379 | 9379 | | |
9380 | | - | |
9381 | | - | |
| 9380 | + | |
| 9381 | + | |
| 9382 | + | |
| 9383 | + | |
9382 | 9384 | | |
9383 | 9385 | | |
9384 | 9386 | | |
| |||
0 commit comments