mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
nvme-fabrics: initialize default host->id in nvmf_host_default()
The field was uninitialized before use. Signed-off-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
254beb84fa
commit
6b018235b4
@ -74,6 +74,7 @@ static struct nvmf_host *nvmf_host_default(void)
|
||||
return NULL;
|
||||
|
||||
kref_init(&host->ref);
|
||||
uuid_gen(&host->id);
|
||||
snprintf(host->nqn, NVMF_NQN_SIZE,
|
||||
"nqn.2014-08.org.nvmexpress:uuid:%pUb", &host->id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user