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

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