projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Btrfs: fix possible memory leak in find_parent_nodes()
[deliverable/linux.git]
/
fs
/
btrfs
/
backref.c
diff --git
a/fs/btrfs/backref.c
b/fs/btrfs/backref.c
index 980e85a264c045359fe679323bd3a626b49db748..ae798c1d088b55f21e9e9fbd1b5f94d81ae58662 100644
(file)
--- a/
fs/btrfs/backref.c
+++ b/
fs/btrfs/backref.c
@@
-911,7
+911,6
@@
again:
while (!list_empty(&prefs)) {
ref = list_first_entry(&prefs, struct __prelim_ref, list);
while (!list_empty(&prefs)) {
ref = list_first_entry(&prefs, struct __prelim_ref, list);
- list_del(&ref->list);
WARN_ON(ref->count < 0);
if (ref->count && ref->root_id && ref->parent == 0) {
/* no parent == root of tree */
WARN_ON(ref->count < 0);
if (ref->count && ref->root_id && ref->parent == 0) {
/* no parent == root of tree */
@@
-956,6
+955,7
@@
again:
eie->next = ref->inode_list;
}
}
eie->next = ref->inode_list;
}
}
+ list_del(&ref->list);
kfree(ref);
}
kfree(ref);
}
This page took
0.063176 seconds
and
5
git commands to generate.