Spdk/lib/nvmf
JinYu a3c9ab66c8 nvmf/ctrlr: free ctrlr->qpair_mask when failure to create ctrlr
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>
2019-01-21 03:52:02 +00:00
..
ctrlr_bdev.c ctrlr_bdev: change spdk_nvmf_bdev_ctrlr_identify_ns to return void 2018-10-15 17:29:30 +00:00
ctrlr_discovery.c nvmf: Only present subsystem if it is ready 2019-01-07 06:02:26 +00:00
ctrlr.c nvmf/ctrlr: free ctrlr->qpair_mask when failure to create ctrlr 2019-01-21 03:52:02 +00:00
Makefile nvme: Add the NVMe over fabrics TCP/IP transport support 2018-11-19 20:36:05 +00:00
nvmf_fc.h lib/nvmf: fix a typo error 2018-10-12 17:40:16 +00:00
nvmf_internal.h nvmf/transport->add per-pg cache 2019-01-18 16:57:37 +00:00
nvmf.c nvmf: Do not set the error state of the qpair 2018-12-18 04:00:59 +00:00
rdma.c nvmf/rdma: add a pool of request_data structs 2019-01-18 20:43:46 +00:00
request.c nvmf: add free_req function pointer. 2018-07-27 20:50:36 +00:00
subsystem.c nvmf: save the NSID when adding a new Namespace 2019-01-14 03:35:04 +00:00
tcp.c nvmf/tcp: Use the common buffer cache for each polling group 2019-01-18 19:21:58 +00:00
transport.c nvmf/transport->add per-pg cache 2019-01-18 16:57:37 +00:00
transport.h nvmf/transport: move buffer_pool to generic struct. 2019-01-17 19:42:01 +00:00