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+0800, majianpeng wrote:
> In func svc_export_parse,the uuid which used kmemdup to alloc will be
> changed in func export_update.So the later kfree don't free this memory.
> And it can't be free in func svc_export_parse because other place still
> used.So put this operation in func svc_export_put.
Applying, thanks.--b.
>
> Signed-off-by: Jianpeng Ma <[email protected]>
> ---
> fs/nfsd/export.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
> index a3946cf..45159ee 100644
> --- a/fs/nfsd/export.c
> +++ b/fs/nfsd/export.c
> @@ -315,6 +315,7 @@ static void svc_export_put(struct kref *ref)
> path_put(&exp->ex_path);
> auth_domain_put(exp->ex_client);
> nfsd4_fslocs_free(&exp->ex_fslocs);
> + kfree(exp->ex_uuid);
> kfree(exp);
> }
>
> --
> 1.7.9.5