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

2024-01-15 Thread Gustavo A. R. Silva
On 1/15/24 12:16, 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 v2] eventfs: Use kcalloc() instead of kzalloc()

2024-01-15 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