From 7ce3117c6419372d7427b5dedfa889905469bbeb Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Thu, 7 Feb 2019 09:05:24 -0700 Subject: [PATCH] test/rdma_ut: fix valgrind issue. Recently, we started setting the list of RDMA wr in the parse_sgl function. This meant that we started using a variable we hadn't before which was uninitialized in the unit tests which caused a valgrind error. Change-Id: I3f76ce1dcf95d1d41fe8b3f96e878859036a5031 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/443791 Tested-by: SPDK CI Jenkins Reviewed-by: Sasha Kotchubievsky Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/unit/lib/nvmf/rdma.c/rdma_ut.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/lib/nvmf/rdma.c/rdma_ut.c b/test/unit/lib/nvmf/rdma.c/rdma_ut.c index 90f97eb65..7f2df40ea 100644 --- a/test/unit/lib/nvmf/rdma.c/rdma_ut.c +++ b/test/unit/lib/nvmf/rdma.c/rdma_ut.c @@ -135,6 +135,7 @@ test_spdk_nvmf_rdma_request_parse_sgl(void) rdma_req.req.rsp = &cpl; rdma_req.data.wr.sg_list = rdma_req.data.sgl; rdma_req.req.qpair = &rqpair.qpair; + rdma_req.req.xfer = SPDK_NVME_DATA_CONTROLLER_TO_HOST; rtransport.transport.opts = g_rdma_ut_transport_opts;