Spdk/test/unit/lib/bdev
Tomasz Zawadzki dae8e89253 test/ut: initialize spdk_bdev_desc to NULL
This fixes error on scan-build on Fedora 30, which assumes spdk_bdev_open()
is called from non-SPDK thread - failing before allocating spdk_bdev_desc:

bdev_ut.c:1766:17: warning: The left operand of '!=' is a garbage value
        CU_ASSERT(desc != NULL);

This is related to issue #822.

Change-Id: I8ee2112bb4d71aafc93d63bddca083c009ec11f3
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459755
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-07-04 00:26:17 +00:00
..
bdev_raid.c test/bdev_raid_ut: fix a warning of a null pointer dereference 2019-07-04 00:21:43 +00:00
bdev.c test/ut: initialize spdk_bdev_desc to NULL 2019-07-04 00:26:17 +00:00
compress.c bvdev/compress: move comp transform structs to static globals 2019-06-05 16:48:36 +00:00
crypto.c bdev/crypto: add new uninit call needed for dpdk 19.02 2019-04-24 22:00:10 +00:00
gpt test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
mt ut/bdev: change module initialization to async 2019-05-16 08:29:19 +00:00
part.c trace: remove short_name 2019-05-02 08:41:56 +00:00
pmem bdev: Not assert but pass completion status to spdk_bdev_io_get_buf_cb 2019-02-27 01:59:11 +00:00
scsi_nvme.c test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
vbdev_lvol.c blobstore: Make possible to remove snapshot if there is only one clone 2019-06-18 13:19:32 +00:00
Makefile bdev/compress: add missing mocks and re-enable UT build for comp 2019-04-22 15:44:38 +00:00