From: emilne@redhat.com (Ewan D. Milne)
Subject: [PATCH] nvme-fabrics: initialize default host->id in nvmf_host_default()
Date: Fri, 5 Jan 2018 12:44:06 -0500 [thread overview]
Message-ID: <1515174246-5836-1-git-send-email-emilne@redhat.com> (raw)
From: "Ewan D. Milne" <emilne@redhat.com>
The field was uninitialized before use.
Signed-off-by: Ewan D. Milne <emilne at redhat.com>
---
drivers/nvme/host/fabrics.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 76b4fe6..894c2cc 100644
--- 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);
--
1.8.3.1
next reply other threads:[~2018-01-05 17:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-05 17:44 Ewan D. Milne [this message]
2018-01-08 9:52 ` [PATCH] nvme-fabrics: initialize default host->id in nvmf_host_default() Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1515174246-5836-1-git-send-email-emilne@redhat.com \
--to=emilne@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox