linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miao Xie <miaoxie@huawei.com>
To: Tsutomu Itoh <t-itoh@jp.fujitsu.com>, <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] Btrfs: fix typo of variable in scrub_stripe
Date: Fri, 9 Jan 2015 16:44:57 +0800	[thread overview]
Message-ID: <54AF9509.3030702@huawei.com> (raw)
In-Reply-To: <201501090837.AA00007@WIN-R1VKH1IH438.jp.fujitsu.com>

On Fri, 09 Jan 2015 17:37:52 +0900, Tsutomu Itoh wrote:
> The address that should be freed is not 'ppath' but 'path'.
> 
> Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com> 
> ---
>  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);

My bad. Thanks to fix it.

Reviewed-by: Miao Xie <miaoxie@huawei.com>

>  		return -ENOMEM;
>  	}
>  
> 


  reply	other threads:[~2015-01-09  8:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-09  8:37 [PATCH] Btrfs: fix typo of variable in scrub_stripe Tsutomu Itoh
2015-01-09  8:44 ` Miao Xie [this message]
2015-01-16 10:51 ` David Sterba
2015-01-16 13:27   ` Chris Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54AF9509.3030702@huawei.com \
    --to=miaoxie@huawei.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=t-itoh@jp.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).