Blame SOURCES/0001-fabrics-Fix-bad-UUID-size-introduced-in-recent-UUID-.patch

171b04
From 78ce3528d00bb433c661fd24672a1b5c6795b59f Mon Sep 17 00:00:00 2001
171b04
From: Martin Belanger <martin.belanger@dell.com>
171b04
Date: Fri, 18 Nov 2022 10:41:32 -0500
171b04
Subject: [PATCH] fabrics: Fix bad UUID size introduced in recent UUID changes
171b04
Content-type: text/plain
171b04
171b04
71c25d1cf741 ("util: Add simple UUID type") introduced a regression in
171b04
nvmf_get_tel(). nvmf_get_tel() returns the lenght of the binary
171b04
representation. Hence use NVME_UUID_LEN instead.
171b04
171b04
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
171b04
[dwagner: massaged commit message]
171b04
Signed-off-by: Daniel Wagner <dwagner@suse.de>
171b04
---
171b04
 src/nvme/fabrics.c | 2 +-
171b04
 1 file changed, 1 insertion(+), 1 deletion(-)
171b04
171b04
diff --git a/src/nvme/fabrics.c b/src/nvme/fabrics.c
171b04
index f943090..36bdc2d 100644
171b04
--- a/src/nvme/fabrics.c
171b04
+++ b/src/nvme/fabrics.c
171b04
@@ -1127,7 +1127,7 @@ static __u32 nvmf_get_tel(const char *hostsymname)
171b04
 	__u16 len;
171b04
 
171b04
 	/* Host ID is mandatory */
171b04
-	tel += nvmf_exat_size(NVME_UUID_LEN_STRING);
171b04
+	tel += nvmf_exat_size(NVME_UUID_LEN);
171b04
 
171b04
 	/* Symbolic name is optional */
171b04
 	len = hostsymname ? strlen(hostsymname) : 0;
171b04
-- 
171b04
2.31.1
171b04