Blame SOURCES/0067-libmultipath-avoid-infinite-loop-with-bad-vpd-page-8.patch

50e627
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
50e627
From: Benjamin Marzinski <bmarzins@redhat.com>
50e627
Date: Thu, 25 Mar 2021 19:52:43 -0500
50e627
Subject: [PATCH] libmultipath: avoid infinite loop with bad vpd page 83
50e627
 identifier
50e627
50e627
If a device with a scsi name identifier has an unknown prefix,
50e627
parse_vpd_pg83() needs to advance to the next identifier, instead of
50e627
simply trying the same one again in an infinite loop.
50e627
50e627
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
50e627
Reviewed-by: Martin Wilck <mwilck@suse.com>
50e627
---
50e627
 libmultipath/discovery.c | 2 +-
50e627
 1 file changed, 1 insertion(+), 1 deletion(-)
50e627
50e627
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
50e627
index bc267609..8c2ab073 100644
50e627
--- a/libmultipath/discovery.c
50e627
+++ b/libmultipath/discovery.c
50e627
@@ -1101,7 +1101,7 @@ parse_vpd_pg83(const unsigned char *in, size_t in_len,
50e627
 			if (memcmp(d + 4, "eui.", 4) &&
50e627
 			    memcmp(d + 4, "naa.", 4) &&
50e627
 			    memcmp(d + 4, "iqn.", 4))
50e627
-				continue;
50e627
+				break;
50e627
 			if (prio < 4) {
50e627
 				prio = 4;
50e627
 				vpd = d;
50e627
-- 
50e627
2.17.2
50e627