Fix checking user param
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
7c7e7bff3f
commit
e7d7064341
@ -1075,7 +1075,7 @@ int cache_mngt_core_pool_get_paths(struct kcas_core_pool_path *cmd_info)
|
|||||||
struct get_paths_ctx visitor_ctx = {0};
|
struct get_paths_ctx visitor_ctx = {0};
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
if (visitor_ctx->core_path_name_tab == NULL)
|
if (cmd_info->core_path_tab == NULL)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
visitor_ctx.core_path_name_tab = cmd_info->core_path_tab;
|
visitor_ctx.core_path_name_tab = cmd_info->core_path_tab;
|
||||||
|
Loading…
Reference in New Issue
Block a user