Spdk/test/unit/lib/bdev
paul luse 8d31df3061 bdev/crypto: fix error path memory leak in driver init
This patch refactors driver init and in doing so eliminates the mem
leak described in the GitHub issue.  Also it is now consistent with
how the pending compression driver does init.

Fixes #633

Change-Id: Ia2d55d9e98fb9470ff8f9b34aeb4ee9f3d0478f5
Signed-off-by: paul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/442896 (master)
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447607
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-03-12 05:12:18 +00:00
..
bdev_raid.c thread: Rename spdk_thread_msg to spdk_msg_fn 2018-12-18 23:31:08 +00:00
bdev.c histograms: add unit tests for public bdev api 2019-01-22 17:06:52 +00:00
crypto.c bdev/crypto: fix error path memory leak in driver init 2019-03-12 05:12:18 +00:00
gpt bdev/gpt: examine my_lba in primary header 2019-01-14 21:26:46 +00:00
mt QoS: enable rate limit when opening the bdev 2019-03-08 19:03:02 +00:00
part.c test: Use ut_multithread framework in bdev/part test 2018-12-23 00:56:01 +00:00
pmem test: Use ut_multithread framework in bdev/pmem 2019-01-15 16:53:12 +00:00
scsi_nvme.c build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
vbdev_lvol.c lvol: add option to change default data erase method 2019-01-23 22:25:37 +00:00
Makefile bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00