From 966cf5b525eb3098efd164645724c33677aabc28 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Thu, 27 Jun 2019 07:35:29 +0200 Subject: [PATCH] ut/ftl: switch to spdk_*malloc(). spdk_dma_*malloc() is about to be deprecated. Change-Id: Ia42621f3b51d276a1a13960e1f35274bdff79007 Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459562 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Reviewed-by: Paul Luse Reviewed-by: Tomasz Zawadzki --- test/unit/lib/ftl/common/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/lib/ftl/common/utils.c b/test/unit/lib/ftl/common/utils.c index 32caed103..7b1332fcf 100644 --- a/test/unit/lib/ftl/common/utils.c +++ b/test/unit/lib/ftl/common/utils.c @@ -139,7 +139,7 @@ test_free_ftl_band(struct ftl_band *band) spdk_bit_array_free(&band->reloc_bitmap); free(band->chunk_buf); free(band->lba_map.map); - spdk_dma_free(band->lba_map.dma_buf); + spdk_free(band->lba_map.dma_buf); } uint64_t