Commit 379d6854a2092e38b6e56a8067d922e31461b7e2

Authored by Tsutomu Itoh
Committed by Chris Mason
1 parent 98bd5c547e

Btrfs: fix incorrect freeing in scrub_stripe

The address that should be freed is not 'ppath' but 'path'.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: Miao Xie <miaoxie@huawei.com>
Signed-off-by: Chris Mason <clm@fb.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -3053,7 +3053,7 @@
3053 3053  
3054 3054 ppath = btrfs_alloc_path();
3055 3055 if (!ppath) {
3056   - btrfs_free_path(ppath);
  3056 + btrfs_free_path(path);
3057 3057 return -ENOMEM;
3058 3058 }
3059 3059