Re: [PATCH] dmaengine: idxd: No need to clear memory after a dma_alloc_coherent() call

From: Christophe JAILLET
Date: Tue May 30 2023 - 14:46:39 EST

Le 30/05/2023 à 17:54, Bernd Petrovitsch a écrit :
On 28/05/2023 16:11, Christophe JAILLET wrote:
dma_alloc_coherent() already clear the allocated memory, there is no need
to explicitly call memset().

Hmm, so wouldn't be dma_zalloc_coherent() a better name for the function?

Kind regards,


No strong opinion about it.
It is not malloc either !)

When dma_zalloc_coherent() has been deprecated (see [1]), for some reason, it was decided to keep the "alloc" version.