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

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