Commit 8651c2eb authored by wenzhong wu's avatar wenzhong wu
Browse files

nvmf: call function spdk_nvmf_valid_nqn to check the host_nqn.



Change-Id: I035fe2538b46d0a19eb00fd829fae9e735c1ded9
Signed-off-by: default avatarwenzhong wu <wenzhongx.wu@intel.com>
parent 326786a9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -366,6 +366,10 @@ spdk_nvmf_subsystem_add_host(struct spdk_nvmf_subsystem *subsystem, const char *
{
	struct spdk_nvmf_host *host;

	if (!spdk_nvmf_valid_nqn(host_nqn)) {
		return -1;
	}

	host = calloc(1, sizeof(*host));
	if (!host) {
		return -1;