Skip to content

Commit 78ce352

Browse files
Martin Belangerdwsuse
authored andcommitted
fabrics: Fix bad UUID size introduced in recent UUID changes
71c25d1 ("util: Add simple UUID type") introduced a regression in nvmf_get_tel(). nvmf_get_tel() returns the lenght of the binary representation. Hence use NVME_UUID_LEN instead. Signed-off-by: Martin Belanger <[email protected]> [dwagner: massaged commit message] Signed-off-by: Daniel Wagner <[email protected]>
1 parent eaee27c commit 78ce352

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nvme/fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ static __u32 nvmf_get_tel(const char *hostsymname)
11271127
__u16 len;
11281128

11291129
/* Host ID is mandatory */
1130-
tel += nvmf_exat_size(NVME_UUID_LEN_STRING);
1130+
tel += nvmf_exat_size(NVME_UUID_LEN);
11311131

11321132
/* Symbolic name is optional */
11331133
len = hostsymname ? strlen(hostsymname) : 0;

0 commit comments

Comments
 (0)