Fix potential bug. In _spdk_nvmf_subsystem_add_ctrlr(), befor free( ctrlr) we should free ctrlr->qpair_mask. Because we set qpair->ctrlr = NULL, when destroy qpair the qpair_mask is not released. For the same reason, req->qpair->ctlr = ctrlr is placed at the bottom of the function. Change-Id: I38e268b532ff3ce87721c02f15ac4f674856d103 Signed-off-by: JinYu <jin.yu@intel.com> Reviewed-on: https://review.gerrithub.io/c/440858 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> |
||
---|---|---|
.. | ||
ctrlr_bdev.c | ||
ctrlr_discovery.c | ||
ctrlr.c | ||
Makefile | ||
nvmf_fc.h | ||
nvmf_internal.h | ||
nvmf.c | ||
rdma.c | ||
request.c | ||
subsystem.c | ||
tcp.c | ||
transport.c | ||
transport.h |