nvme/transport: addd assert for transport.
Silences a KW error. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: Ifd8d6088a22de7c230d48751be2b3991d0649778 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3553 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
7177e94973
commit
0b1799cd98
@ -280,6 +280,8 @@ nvme_transport_ctrlr_delete_io_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_
|
||||
{
|
||||
const struct spdk_nvme_transport *transport = nvme_get_transport(ctrlr->trid.trstring);
|
||||
|
||||
assert(transport != NULL);
|
||||
|
||||
/* Do not rely on qpair->transport. For multi-process cases, a foreign process may delete
|
||||
* the IO qpair, in which case the transport object would be invalid (each process has their
|
||||
* own unique transport objects since they contain function pointers). So we look up the
|
||||
|
Loading…
Reference in New Issue
Block a user