lib/nvme: fix do not use external_io_msg_qpair after free
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473282 (master)
(cherry picked from commit 53184430a5
)
Change-Id: I20ef8303c2fae6abf43d15ebb025ea368c0dfd67
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478585
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
673fe94f7e
commit
9cd5302810
@ -166,6 +166,7 @@ nvme_io_msg_ctrlr_stop(struct spdk_nvme_ctrlr *ctrlr, struct nvme_io_msg_produce
|
||||
|
||||
if (ctrlr->external_io_msgs_qpair) {
|
||||
spdk_nvme_ctrlr_free_io_qpair(ctrlr->external_io_msgs_qpair);
|
||||
ctrlr->external_io_msgs_qpair = NULL;
|
||||
}
|
||||
|
||||
pthread_mutex_destroy(&ctrlr->external_io_msgs_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user