Re: [PATCH] smatch_allocations: Give a hint about dma_alloc_(attrs|coherent)
Dan Carpenter <[email protected]> Mon, 15 Aug 2022 14:42:49 +0300
| Newsgroups | org.kernel.vger.smatch |
|---|---|
| Message-ID | <20220815114249.GN3438@kadam> |
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 <[email protected]> > --- > 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