All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhou.guichun@zte.com.cn
To: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: tang.junhui@zte.com.cn, "zhou.guichun" <zhou.guichun@zte.com.cn>,
	zhang.kai16@zte.com.cn, dm-devel@redhat.com
Subject: [PATCH] libmultipath: fix missing dm_task_destroy() in dm_reassign()
Date: Mon, 7 Nov 2016 10:01:17 +0800	[thread overview]
Message-ID: <1478484077-9740-1-git-send-email-zhou.guichun@zte.com.cn> (raw)

From: "zhou.guichun" <zhou.guichun@zte.com.cn>

dm_task should be destoryed before going out of dm_reassign()

Signed-off-by: zhou.guichun <zhou.guichun@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

             reply	other threads:[~2016-11-07  2:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-07  2:01 zhou.guichun [this message]
2016-11-20 13:36 ` [PATCH] libmultipath: fix missing dm_task_destroy() in dm_reassign() Christophe Varoqui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1478484077-9740-1-git-send-email-zhou.guichun@zte.com.cn \
    --to=zhou.guichun@zte.com.cn \
    --cc=christophe.varoqui@opensvc.com \
    --cc=dm-devel@redhat.com \
    --cc=tang.junhui@zte.com.cn \
    --cc=zhang.kai16@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.