提交 187ee58c 编写于 作者: J Josef Bacik 提交者: Chris Mason

Btrfs: fix em leak in find_first_block_group

We need to call free_extent_map() on the em we look up.
Signed-off-by: NJosef Bacik <jbacik@fb.com>
Reviewed-by: NOmar Sandoval <osandov@fb.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
Signed-off-by: NChris Mason <clm@fb.com>
上级 14238819
......@@ -9887,6 +9887,7 @@ static int find_first_block_group(struct btrfs_root *root,
} else {
ret = 0;
}
free_extent_map(em);
goto out;
}
path->slots[0]++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册