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

2024-01-21 Thread Alexandre Ghiti
Hi Erick, On 20/01/2024 14:54, 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

Re: [PATCH] bus: mhi: ep: Use kcalloc() instead of kzalloc()

2024-01-21 Thread Dan Carpenter
This code does not have an integer overflow, but it might have a different memory corruption bug. On Sat, Jan 20, 2024 at 04:25:18PM +0100, Erick Archer wrote: > As noted in the "Deprecated Interfaces, Language Features, Attributes, > and Conventions" documentation [1], size calculations (especial

Re: [PATCH] clk: hisilicon: Use devm_kcalloc() instead of devm_kzalloc()

2024-01-21 Thread Uwe Kleine-König
On Sun, Jan 21, 2024 at 03:29:46PM +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] pinctrl: pinctrl-zynqmp: Use devm_kcalloc() instead of devm_kzalloc()

2024-01-21 Thread Michal Simek
On 1/19/24 19:19, 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

Re: [PATCH] staging: rtl8723bs: Use kcalloc() instead of kzalloc()

2024-01-21 Thread Dan Carpenter
On Fri, Jan 19, 2024 at 06:39:00PM +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

[PATCH] clk: hisilicon: Use devm_kcalloc() instead of devm_kzalloc()

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

Re: [PATCH] wifi: iwlegacy: Use kcalloc() instead of kzalloc()

2024-01-21 Thread Stanislaw Gruszka
On Fri, Jan 19, 2024 at 06:16:55PM +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] Documentation: power: Use kcalloc() instead of kzalloc()

2024-01-21 Thread Erick Archer
On Sat, Jan 20, 2024 at 01:05:27PM +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