json_config: verify jsonrpc client request allocation
Change-Id: I9f2c95881a7ee36630d9b7d3e2347cf5b8bfb847 Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/c/441568 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
88ddf0f22e
commit
a96748a782
@ -439,6 +439,11 @@ spdk_app_json_config_load_subsystem(void *_ctx)
|
||||
if (spdk_rpc_get_state() == SPDK_RPC_STARTUP) {
|
||||
SPDK_DEBUG_APP_CFG("No more entries for current state, calling 'start_subsystem_init'\n");
|
||||
req = spdk_jsonrpc_client_create_request();
|
||||
if (!req) {
|
||||
spdk_app_json_config_load_done(ctx, -ENOMEM);
|
||||
return;
|
||||
}
|
||||
|
||||
w = spdk_jsonrpc_begin_request(req, ctx->rpc_request_id++, "start_subsystem_init");
|
||||
if (!w) {
|
||||
spdk_jsonrpc_client_free_request(req);
|
||||
|
Loading…
Reference in New Issue
Block a user