From a6f667af1dc5028efa0c6ac379a3afb667812c4c Mon Sep 17 00:00:00 2001 From: Anil Veerabhadrappa Date: Mon, 21 Oct 2019 15:24:31 -0700 Subject: [PATCH] nvmf/fc: initialize 'adrfam' and 'trsvcid' in fc transport id Signed-off-by: Anil Veerabhadrappa Change-Id: I28476ec019f8e9ae98b9925e030f3c09ccfd726c Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471950 Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Alexey Marchuk Tested-by: SPDK CI Jenkins --- module/event/subsystems/nvmf/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/event/subsystems/nvmf/conf.c b/module/event/subsystems/nvmf/conf.c index e686505fd..6b62ac497 100644 --- a/module/event/subsystems/nvmf/conf.c +++ b/module/event/subsystems/nvmf/conf.c @@ -280,6 +280,8 @@ spdk_nvmf_tgt_parse_listen_fc_addr(const char *address, return -1; } + trid->adrfam = SPDK_NVMF_ADRFAM_FC; + snprintf(trid->trsvcid, sizeof(trid->trsvcid), "none"); snprintf(trid->traddr, sizeof(trid->traddr), "%s", address); return 0;