Re: [PATCH] MIPS: Alchemy: Use kcalloc() instead of kzalloc()

2024-02-20 Thread Thomas Bogendoerfer
On Sat, Jan 20, 2024 at 02:34:43PM +0100, Erick Archer wrote: > As noted in the "Deprecated Interfaces, Language Features, Attributes, > and Conventions" documentation [1], size calculations (especially > multiplication) should not be performed in memory allocator (or similar) > function arguments

Re: [PATCH] MIPS: Alchemy: Use kcalloc() instead of kzalloc()

2024-01-22 Thread Gustavo A. R. Silva
On 1/20/24 07:34, Erick Archer wrote: As noted in the "Deprecated Interfaces, Language Features, Attributes, and Conventions" documentation [1], size calculations (especially multiplication) should not be performed in memory allocator (or similar) function arguments due to the risk of them ove

[PATCH] MIPS: Alchemy: Use kcalloc() instead of kzalloc()

2024-01-20 Thread Erick Archer
As noted in the "Deprecated Interfaces, Language Features, Attributes, and Conventions" documentation [1], size calculations (especially multiplication) should not be performed in memory allocator (or similar) function arguments due to the risk of them overflowing. This could lead to values wrappin