Commit 6b018235 authored by Ewan D. Milne's avatar Ewan D. Milne Committed by Christoph Hellwig

nvme-fabrics: initialize default host->id in nvmf_host_default()

The field was uninitialized before use.
Signed-off-by: default avatarEwan D. Milne <emilne@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 254beb84
...@@ -74,6 +74,7 @@ static struct nvmf_host *nvmf_host_default(void) ...@@ -74,6 +74,7 @@ static struct nvmf_host *nvmf_host_default(void)
return NULL; return NULL;
kref_init(&host->ref); kref_init(&host->ref);
uuid_gen(&host->id);
snprintf(host->nqn, NVMF_NQN_SIZE, snprintf(host->nqn, NVMF_NQN_SIZE,
"nqn.2014-08.org.nvmexpress:uuid:%pUb", &host->id); "nqn.2014-08.org.nvmexpress:uuid:%pUb", &host->id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment