Powered by Linux
Re: [PATCH] smatch_allocations: Give a hint about dma_alloc_(attrs|coherent) — Semantic Matching Tool

Re: [PATCH] smatch_allocations: Give a hint about dma_alloc_(attrs|coherent)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 15, 2022 at 10:18:31AM +0200, Christophe JAILLET wrote:
> In recent kernel, dma_alloc_attrs() and dma_alloc_coherent() zero the
> allocated memory.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> This was not the case in older kernel, so maybe it is better not to state
> that the memory is zeroed.
> 
> (I've not seen where/how this .zeroed information was used)

This code is aspirational.  I keep on creating lists of allocation
functions but hopefully it can all be pulled into one central location.

regards,
dan carpenter




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux