NVMe: fix the potential issue of dereference NULL pointer
Change-Id: Icb81239e64faa5e9c0daf361798b68e153effcee Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7154 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: <dongx.yi@intel.com> Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
e3e8fadca4
commit
415d664029
@ -1856,6 +1856,8 @@ nvme_ctrlr_identify_active_ns_async(struct nvme_active_ns_ctx *ctx)
|
||||
goto out;
|
||||
}
|
||||
|
||||
assert(ctx->new_ns_list != NULL);
|
||||
|
||||
/*
|
||||
* If controller doesn't support active ns list CNS 0x02 dummy up
|
||||
* an active ns list, i.e. all namespaces report as active
|
||||
|
Loading…
Reference in New Issue
Block a user