From patchwork Fri Feb 1 20:18:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 2082591 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BDC0ADFE75 for ; Fri, 1 Feb 2013 20:11:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756784Ab3BAULf (ORCPT ); Fri, 1 Feb 2013 15:11:35 -0500 Received: from mx1.fusionio.com ([66.114.96.30]:40541 "EHLO mx1.fusionio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756140Ab3BAULe (ORCPT ); Fri, 1 Feb 2013 15:11:34 -0500 X-ASG-Debug-ID: 1359749493-03d6a508b8611010001-6jHSXT Received: from mail1.int.fusionio.com (mail1.int.fusionio.com [10.101.1.21]) by mx1.fusionio.com with ESMTP id 060g9l5wRJp4kd1X (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 01 Feb 2013 13:11:33 -0700 (MST) X-Barracuda-Envelope-From: JBacik@fusionio.com Received: from localhost (98.26.82.158) by mail.fusionio.com (10.101.1.19) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 1 Feb 2013 13:11:32 -0700 From: Josef Bacik To: Subject: [PATCH] Btrfs-progs: fix double free of extent buffer Date: Fri, 1 Feb 2013 15:18:24 -0500 X-ASG-Orig-Subj: [PATCH] Btrfs-progs: fix double free of extent buffer Message-ID: <1359749904-12717-1-git-send-email-jbacik@fusionio.com> X-Mailer: git-send-email 1.7.7.6 MIME-Version: 1.0 X-Barracuda-Connect: mail1.int.fusionio.com[10.101.1.21] X-Barracuda-Start-Time: 1359749493 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: http://10.101.1.180:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at fusionio.com X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -1.42 X-Barracuda-Spam-Status: No, SCORE=-1.42 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=MARKETING_SUBJECT X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.121541 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.60 MARKETING_SUBJECT Subject contains popular marketing words Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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 --- 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; }