Commit fee4c19
btrfs: fix fscrypt name leak after failure to join log transaction
When logging a new name, we don't expect to fail joining a log transaction
since we know at least one of the inodes was logged before in the current
transaction. However if we fail for some unexpected reason, we end up not
freeing the fscrypt name we previously allocated. So fix that by freeing
the name in case we failed to join a log transaction.
Fixes: ab3c5c1 ("btrfs: setup qstr from dentrys using fscrypt helper")
Reviewed-by: Sweet Tea Dorminy <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent e7fc357 commit fee4c19
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7459 | 7459 | | |
7460 | 7460 | | |
7461 | 7461 | | |
7462 | | - | |
| 7462 | + | |
| 7463 | + | |
7463 | 7464 | | |
| 7465 | + | |
| 7466 | + | |
7464 | 7467 | | |
7465 | 7468 | | |
7466 | 7469 | | |
| |||
0 commit comments