ut/ftl: fixed unitialized value warnings
Clear the metadata before using it to avoid valgrind's uninitialized value warnings. Change-Id: I1ffd7f50239bace7700d7620b761d1de49942af7 Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449158 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
5874e2ac6c
commit
ce95c099a8
@ -64,6 +64,7 @@ setup_band(struct ftl_band **band, const struct spdk_ocssd_geometry_data *geo,
|
|||||||
*band = test_init_ftl_band(dev, 0);
|
*band = test_init_ftl_band(dev, 0);
|
||||||
rc = ftl_band_alloc_md(*band);
|
rc = ftl_band_alloc_md(*band);
|
||||||
CU_ASSERT_EQUAL_FATAL(rc, 0);
|
CU_ASSERT_EQUAL_FATAL(rc, 0);
|
||||||
|
ftl_band_clear_md(*band);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user