Spdk/lib/nvmf
Daniel Verkamp 5518a327a8 nvmf/rdma: fix error paths in spdk_nvmf_rdma_create
Most of the error paths in this function leaked resources.  Make them
all use spdk_nvmf_rdma_destroy() so all resources are consistently
freed.

The spdk_io_device_register() call is moved to the top of the function
so that the io_device is always valid when calling the destroy function.

Change-Id: Ic92f09f157ee8245fb962d8bc3330aadd87b294a
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/418869
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
2018-07-11 16:04:43 +00:00
..
ctrlr_bdev.c nvmf: Add trace points for the RDMA state machine 2018-06-12 20:01:33 +00:00
ctrlr_discovery.c bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
ctrlr.c nvme_spec: add VWC flush broadcast bits (TP 4035) 2018-06-26 22:51:37 +00:00
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
nvmf_fc.h NVMF: Fibre Channel Transport API 2018-07-10 21:21:48 +00:00
nvmf_internal.h nvmf: Keep a list of qpairs per poll group 2018-06-20 22:07:24 +00:00
nvmf.c nvmf: give qpair_disconnect an asynchronous api. 2018-07-06 22:49:39 +00:00
rdma.c nvmf/rdma: fix error paths in spdk_nvmf_rdma_create 2018-07-11 16:04:43 +00:00
request.c thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
subsystem.c nvmf: don't change NN while ctrlrs exist 2018-06-13 21:52:38 +00:00
transport.c nvmf: redundant spdk_nvmf_transport assignment 2018-06-14 17:44:27 +00:00
transport.h nvmf: Remove poll group from controller 2017-12-12 15:01:17 -05:00