1c96eff6a2
nvme_alloc_request() does not zero out the request (this is intentional, since the real implementation uses a mempool where requests get reused). Add nvme_allocate_request() wrapper that initializes the request correctly. This fixes all uses of uninitialized memory caught by Valgrind in nvme_qpair_ut. This test was also failing in practice on FreeBSD due to non-zero buffers returned from malloc(). Change-Id: I2d6ea29289bd4887aaa9120fba6bce10088e6917 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>