bdev/nvme: add an assert for nvme_bdev_ctrlr when populating namespaces.
This is always going to be true because of the context we are in when calling this function, but add an assert just to be safe. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: Ifbd075865a191529eb9e656c360f182dba8a85bc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1985 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
2e69975fab
commit
2a6a491250
@ -1540,6 +1540,7 @@ nvme_ctrlr_populate_namespaces_done(struct nvme_async_probe_ctx *ctx)
|
||||
size_t j;
|
||||
|
||||
nvme_bdev_ctrlr = nvme_bdev_ctrlr_get(&ctx->trid);
|
||||
assert(nvme_bdev_ctrlr != NULL);
|
||||
|
||||
/*
|
||||
* Report the new bdevs that were created in this call.
|
||||
|
Loading…
Reference in New Issue
Block a user