projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1311a
)
nvme-fabrics: initialize default host->id in nvmf_host_default()
author
Ewan D. Milne
<emilne@redhat.com>
Fri, 5 Jan 2018 17:44:06 +0000
(12:44 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:36 +0000
(10:24 +0100)
[ Upstream commit
6b018235b4daabae96d855219fae59c3fb8be417
]
The field was uninitialized before use.
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/fabrics.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/fabrics.c
b/drivers/nvme/host/fabrics.c
index 555c976cc2ee7aae729c6465003b5cdffa11d594..8cd42544c90e1a40d7a60a9c60a72107d1baa09d 100644
(file)
--- a/
drivers/nvme/host/fabrics.c
+++ b/
drivers/nvme/host/fabrics.c
@@
-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);