linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Btrfs-progs: fix double free of extent buffer
@ 2013-02-01 20:18 Josef Bacik
  0 siblings, 0 replies; only message in thread
From: Josef Bacik @ 2013-02-01 20:18 UTC (permalink / raw)
  To: linux-btrfs

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 |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/btrfsck.c b/btrfsck.c
index ff2d7b5..b9dc0bd 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -2594,7 +2594,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;
 	}
 
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-01 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 20:18 [PATCH] Btrfs-progs: fix double free of extent buffer Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).