vhost_rpc: Fix function typo error.

Compiling reports this issue.
Analyzer checks this with ASAN.

Change-Id: Ia01a700b6b3b77dc9e0657fc3d8b28089997a626
Signed-off-by: yidong0635 <dongx.yi@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470807
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
yidong0635 2019-10-09 11:13:57 -04:00 committed by Jim Harris
parent 729fa9743f
commit b0400403af

View File

@ -635,7 +635,7 @@ spdk_rpc_vhost_nvme_controller_add_ns(struct spdk_jsonrpc_request *request,
return;
invalid:
free_rpc_vhost_nvme_ctrlradd__ns(&req);
free_rpc_vhost_nvme_ctrlr_add_ns(&req);
spdk_jsonrpc_send_error_response(request, SPDK_JSONRPC_ERROR_INVALID_PARAMS,
spdk_strerror(-rc));
}