|
@@ -739,12 +739,13 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts,
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
ret = uuid_parse(p, &hostid);
|
|
ret = uuid_parse(p, &hostid);
|
|
- kfree(p);
|
|
|
|
if (ret) {
|
|
if (ret) {
|
|
pr_err("Invalid hostid %s\n", p);
|
|
pr_err("Invalid hostid %s\n", p);
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
|
|
+ kfree(p);
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
+ kfree(p);
|
|
break;
|
|
break;
|
|
case NVMF_OPT_DUP_CONNECT:
|
|
case NVMF_OPT_DUP_CONNECT:
|
|
opts->duplicate_connect = true;
|
|
opts->duplicate_connect = true;
|