test/unit: fix valgrind error for test_nvme_free_request
In test_nvme_free_request, there is valgrind error: Conditional jump or move depends on uninitialised value(s) Signed-off-by: Rui Chang <rui.chang@arm.com> Change-Id: I80f741cac9316d86b060419e3b6fb651fa018aa4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11826 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
5d4ccc8325
commit
cd9fca0d20
@ -749,6 +749,7 @@ test_nvme_free_request(void)
|
||||
/* the code under tests asserts this condition */
|
||||
match_req.num_children = 0;
|
||||
STAILQ_INIT(&qpair.free_req);
|
||||
match_req.qpair->reserved_req = NULL;
|
||||
|
||||
nvme_free_request(&match_req);
|
||||
req = STAILQ_FIRST(&match_req.qpair->free_req);
|
||||
|
Loading…
Reference in New Issue
Block a user