[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-btrfs
Subject: [PATCH] Btrfs: fix double free in the iterate_extent_inodes()
From: Wang Shilong <wangshilong1991 () gmail ! com>
Date: 2013-03-29 13:05:30
Message-ID: 1364562330-1606-1-git-send-email-wangshilong1991 () gmail ! com
[Download RAW message or body]
From: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
If btrfs_find_all_roots() fails, 'roots' has been freed or 'roots'
fails to allocate. we don't need to free it outside btrfs_find_all_roots()
again.Fix it.
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
---
fs/btrfs/backref.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index 5ff46ee..3ca413bb 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -1514,7 +1514,6 @@ int iterate_extent_inodes(struct btrfs_fs_info *fs_info,
}
free_leaf_list(refs);
- ulist_free(roots);
out:
if (!search_commit_root) {
btrfs_put_tree_mod_seq(fs_info, &tree_mod_seq_elem);
--
1.7.11.7
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic