dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] libmultipath: find_mpe(): don't match with empty WWID
@ 2020-09-16 20:33 mwilck
  2020-09-16 20:33 ` [PATCH 2/2] libmultipath: copy mpp->hwe from pp->hwe mwilck
  0 siblings, 1 reply; 2+ messages in thread
From: mwilck @ 2020-09-16 20:33 UTC (permalink / raw)
  To: Christophe Varoqui, Benjamin Marzinski; +Cc: dm-devel, Martin Wilck

From: Martin Wilck <mwilck@suse.com>

Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 libmultipath/config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/config.c b/libmultipath/config.c
index b9bdbdb..df0f8f4 100644
--- a/libmultipath/config.c
+++ b/libmultipath/config.c
@@ -147,7 +147,7 @@ struct mpentry *find_mpe(vector mptable, char *wwid)
 	int i;
 	struct mpentry * mpe;
 
-	if (!wwid)
+	if (!wwid || !*wwid)
 		return NULL;
 
 	vector_foreach_slot (mptable, mpe, i)
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-16 20:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 20:33 [PATCH 1/2] libmultipath: find_mpe(): don't match with empty WWID mwilck
2020-09-16 20:33 ` [PATCH 2/2] libmultipath: copy mpp->hwe from pp->hwe mwilck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).