Re: [PATCH] mm/dmapool.c: avoid duplicate memset within dma_pool_alloc

From: liusong
Date: Sun Jul 17 2022 - 22:07:34 EST


This patch can not only consider direct alloc, with config CONFIG_DMA_DECLARE_COHERENT,
in "dma_alloc_from_dev_coherent", which will also explicitly memset the allocated memory to 0,
so this situation needs to be considered. It is beneficial to the process of calling "dma_pool_zalloc".
Next, a V2 patch will be submitted.

Thanks.