[Ocfs2-tools-devel] [PATCH] extent_tree.c: fix parameter data type to ocfs2_free()
Tao Ma
tao.ma at oracle.com
Sat Dec 19 23:14:18 PST 2009
sob.
Coly Li wrote:
> This patch fixes the data type passed to ocfs2_free() in libocfs2/extent_tree.c, from 'char *' to 'char **'
>
> Signed-off-by: Coly Li <coly.li at suse.de>
> ---
> libocfs2/extent_tree.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libocfs2/extent_tree.c b/libocfs2/extent_tree.c
> index 499ce1b..82657c0 100644
> --- a/libocfs2/extent_tree.c
> +++ b/libocfs2/extent_tree.c
> @@ -207,7 +207,7 @@ static void ocfs2_cp_path(ocfs2_filesys *fs,
> for(i = 1; i < OCFS2_MAX_PATH_DEPTH; i++) {
> if (!src->p_node[i].buf) {
> if (dest->p_node[i].buf)
> - ocfs2_free(dest->p_node[i].buf);
> + ocfs2_free(&dest->p_node[i].buf);
> dest->p_node[i].blkno = 0;
> dest->p_node[i].buf = NULL;
> dest->p_node[i].el = NULL;
>
More information about the Ocfs2-tools-devel
mailing list