test: fix error about unittest_thread uninitialised parameters
When running unittest_thread in fedora29 with memcheck, there is error "Conditional jump or move depends on uninitialised value(s)" in for_each_channel_unreg test. Signed-off-by: Richael Zhuang <richael.zhuang@arm.com> Change-Id: I38abf4c70ff513e39232b83357d571dded8f02c3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1072 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
9cc1013a83
commit
ceb601188b
@ -550,7 +550,7 @@ for_each_channel_unreg(void)
|
|||||||
struct spdk_io_channel *ch0;
|
struct spdk_io_channel *ch0;
|
||||||
struct io_device *dev;
|
struct io_device *dev;
|
||||||
struct unreg_ctx ctx = {};
|
struct unreg_ctx ctx = {};
|
||||||
int io_target;
|
int io_target = 0;
|
||||||
|
|
||||||
allocate_threads(1);
|
allocate_threads(1);
|
||||||
set_thread(0);
|
set_thread(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user