projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b4caf
)
Btrfs: fix path leakage on subvol deletion
author
Josef Bacik
<josef@redhat.com>
Tue, 14 Jun 2011 18:24:32 +0000
(14:24 -0400)
committer
Josef Bacik
<josef@redhat.com>
Wed, 15 Jun 2011 17:24:45 +0000
(13:24 -0400)
The delayed ref patch accidently removed the btrfs_free_path in
btrfs_unlink_subvol, this puts it back and means we don't leak a path. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index c15636b17874bb1f1e181dabe5e344e2a19b45b4..5813dec5101cc1856762d33b5f1370069c8ecef5 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-3076,6
+3076,7
@@
int btrfs_unlink_subvol(struct btrfs_trans_handle *trans,
ret = btrfs_update_inode(trans, root, dir);
BUG_ON(ret);
+ btrfs_free_path(path);
return 0;
}