[dm-devel] [PATCH] libmultipath: fix missing dm_task_destroy() in dm_reassign()
Christophe Varoqui
christophe.varoqui at opensvc.com
Sun Nov 20 13:36:53 UTC 2016
Merged.
Thanks.
On Mon, Nov 7, 2016 at 3:01 AM, <zhou.guichun at zte.com.cn> wrote:
> From: "zhou.guichun" <zhou.guichun at zte.com.cn>
>
> dm_task should be destoryed before going out of dm_reassign()
>
> Signed-off-by: zhou.guichun <zhou.guichun at zte.com.cn>
> ---
> libmultipath/devmapper.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c
> index 5aea5b6..e9d13b6 100644
> --- a/libmultipath/devmapper.c
> +++ b/libmultipath/devmapper.c
> @@ -1582,10 +1582,9 @@ int dm_reassign(const char *mapname)
> sysfs_check_holders(dm_dep, dev_t);
> }
>
> - dm_task_destroy (dmt);
> -
> r = 1;
> out:
> + dm_task_destroy (dmt);
> return r;
> }
>
> --
> 2.8.1.windows.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20161120/e43a7b59/attachment.htm>
More information about the dm-devel
mailing list