projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6175ef
)
Btrfs: fix buffer leak in btrfs_next_old_leaf
author
Jan Schmidt
<list.btrfs@jan-o-sch.net>
Wed, 4 Jul 2012 14:15:02 +0000
(08:15 -0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:28:03 +0000
(16:28 -0400)
When calling btrfs_next_old_leaf, we were leaking an extent buffer in the
rare case of using the deadlock avoidance code needed for the tree mod log.
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/ctree.c
b/fs/btrfs/ctree.c
index
8206b39
..
67fe46f
100644
(file)
--- a/
fs/btrfs/ctree.c
+++ b/
fs/btrfs/ctree.c
@@
-5127,6
+5127,7
@@
again:
* locked. To solve this situation, we give up
* on our lock and cycle.
*/
+ free_extent_buffer(next);
btrfs_release_path(path);
cond_resched();
goto again;