Re: [PATCH v2] dmaengine: pl08x: Use kcalloc() instead of kzalloc()

2024-04-07 Thread Erick Archer
Hi Vinod, On Sun, Apr 07, 2024 at 05:09:39PM +0530, Vinod Koul wrote: > On 30-03-24, 16:23, Erick Archer wrote: > > This is an effort to get rid of all multiplications from allocation > > functions in order to prevent integer overflows [1]. > > > > Here the multiplication is obviously safe becaus

Re: [PATCH v2] dmaengine: pl08x: Use kcalloc() instead of kzalloc()

2024-04-07 Thread Vinod Koul
On 30-03-24, 16:23, Erick Archer wrote: > This is an effort to get rid of all multiplications from allocation > functions in order to prevent integer overflows [1]. > > Here the multiplication is obviously safe because the "channels" > member can only be 8 or 2. This value is set when the "vendor_