[qca-nss-drv] Mark the additional pbuf memory given to nss as no leak
Mark the additional pbuf memory allocated at host and given to nss
as no leak
Change-Id: Ia502f16a0e1f7db7a82cd1dd1313ffbf85c96d81
Signed-off-by: Radha krishna Simha Jiguru <rjiguru@codeaurora.org>
diff --git a/nss_n2h.c b/nss_n2h.c
index f7a2717..e16f9b6 100644
--- a/nss_n2h.c
+++ b/nss_n2h.c
@@ -977,6 +977,7 @@
break;
}
+ kmemleak_not_leak(kern_addr);
buf_pool->nss_buf_pool_vaddr[page_count] = kern_addr;
buf_pool->nss_buf_pool_addr[page_count] = dma_map_single(nss_ctx->dev, kern_addr, PAGE_SIZE, DMA_TO_DEVICE);
}