From patchwork Fri Jan 9 08:37:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsutomu Itoh X-Patchwork-Id: 5596981 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D2FA3C058D for ; Fri, 9 Jan 2015 08:38:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D25C2050E for ; Fri, 9 Jan 2015 08:38:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3D8C820462 for ; Fri, 9 Jan 2015 08:38:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505AbbAIIiL (ORCPT ); Fri, 9 Jan 2015 03:38:11 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:59551 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753805AbbAIIiL (ORCPT ); Fri, 9 Jan 2015 03:38:11 -0500 Received: from kw-mxoi1.gw.nic.fujitsu.com (unknown [10.0.237.133]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 4C0533EE1E5 for ; Fri, 9 Jan 2015 17:38:09 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (s4.gw.fujitsu.co.jp [10.0.50.94]) by kw-mxoi1.gw.nic.fujitsu.com (Postfix) with ESMTP id 3E5EEAC086D for ; Fri, 9 Jan 2015 17:38:08 +0900 (JST) Received: from m3051.s.css.fujitsu.com (m3051.s.css.fujitsu.com [10.134.21.209]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id E5923E08006 for ; Fri, 9 Jan 2015 17:38:07 +0900 (JST) Received: from WIN-R1VKH1IH438.jp.fujitsu.com (unknown [10.124.102.85]) by m3051.s.css.fujitsu.com (Postfix) with SMTP id B8341D5 for ; Fri, 9 Jan 2015 17:38:07 +0900 (JST) X-SecurityPolicyCheck: OK by SHieldMailChecker v2.2.0 X-SHieldMailCheckerPolicyVersion: FJ-ISEC-20131115 Message-Id: <201501090837.AA00007@WIN-R1VKH1IH438.jp.fujitsu.com> From: Tsutomu Itoh Date: Fri, 09 Jan 2015 17:37:52 +0900 To: linux-btrfs@vger.kernel.org Subject: [PATCH] Btrfs: fix typo of variable in scrub_stripe MIME-Version: 1.0 X-Mailer: AL-Mail32 Version 1.13 X-TM-AS-MML: No Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The address that should be freed is not 'ppath' but 'path'. Signed-off-by: Tsutomu Itoh Reviewed-by: Miao Xie --- fs/btrfs/scrub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index f2bb13a..403fbdb 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -3053,7 +3053,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, ppath = btrfs_alloc_path(); if (!ppath) { - btrfs_free_path(ppath); + btrfs_free_path(path); return -ENOMEM; }