Btrfs-progs: fix double free of extent buffer
authorJosef Bacik <jbacik@fusionio.com>
Fri, 1 Feb 2013 20:18:24 +0000 (15:18 -0500)
committerDavid Sterba <dsterba@suse.cz>
Thu, 7 Feb 2013 00:19:50 +0000 (01:19 +0100)
Noticed this while looking for an segfault related to our eb cache in
btrfsck.  We free the eb in out: so we don't need this extra free.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
btrfsck.c

index 81c1059..71e98de 100644 (file)
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -2651,7 +2651,6 @@ static int run_next_block(struct btrfs_root *root,
        if (!extent_buffer_uptodate(buf)) {
                record_bad_block_io(root->fs_info,
                                    extent_cache, bytenr, size);
-               free_extent_buffer(buf);
                goto out;
        }