numam-spdk/lib/nvmf
Daniel Verkamp 42ec0c007e nvmf: fix crash on shutdown with invalid config
If a bdev-based controller is partially set up but then needs to be torn
down due to an invalid configuration, the nvmf_bdev_ctrlr_detach()
function could try to put a NULL spdk_io_channel.

Add checks to avoid releasing resources that weren't allocated yet.

Change-Id: I779c80f4dc654af3c4b0a49d8d216e13ab5f8333
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/373390
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-08-09 16:52:58 -04:00
..
ctrlr_bdev.c nvmf: fix crash on shutdown with invalid config 2017-08-09 16:52:58 -04:00
ctrlr_discovery.c nvmf: Add wrappers for transport calls 2017-08-08 15:46:28 -04:00
ctrlr.c nvmf: Add wrappers for transport calls 2017-08-08 15:46:28 -04:00
ctrlr.h nvmf: Transports are no longer global 2017-08-08 14:09:45 -04:00
Makefile nvmf: Rename spdk_nvmf_session to spdk_nvmf_ctrlr 2017-08-08 13:46:48 -04:00
nvmf_internal.h nvmf: Transports are no longer global 2017-08-08 14:09:45 -04:00
nvmf.c nvmf: Clarify transport API for listen and accept 2017-08-08 15:46:28 -04:00
rdma.c nvmf: Clarify transport API for listen and accept 2017-08-08 15:46:28 -04:00
request.c nvmf: Add wrappers for transport calls 2017-08-08 15:46:28 -04:00
request.h nvmf: Rename spdk_nvmf_conn to spdk_nvmf_qpair 2017-08-08 13:46:48 -04:00
subsystem.c nvmf: Clarify transport API for listen and accept 2017-08-08 15:46:28 -04:00
subsystem.h nvmf: Remove direct mode 2017-08-02 13:57:45 -04:00
transport.c nvmf: Clarify transport API for listen and accept 2017-08-08 15:46:28 -04:00
transport.h nvmf: Clarify transport API for listen and accept 2017-08-08 15:46:28 -04:00