Commit ce95c099 authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Changpeng Liu
Browse files

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: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449158


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarWojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 5874e2ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ setup_band(struct ftl_band **band, const struct spdk_ocssd_geometry_data *geo,
	*band = test_init_ftl_band(dev, 0);
	rc = ftl_band_alloc_md(*band);
	CU_ASSERT_EQUAL_FATAL(rc, 0);
	ftl_band_clear_md(*band);
}

static void