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

2024-01-24 Thread Dan Carpenter
On Mon, Jan 22, 2024 at 07:16:54PM +0100, Erick Archer wrote: > Hi Dan, > > On Mon, Jan 22, 2024 at 09:55:11AM +0300, Dan Carpenter wrote: > > On Fri, Jan 19, 2024 at 06:39:00PM +0100, Erick Archer wrote: > > > As noted in the "Deprecated Interfaces, Language Features, Attributes, > > > and Conven

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

2024-01-22 Thread Erick Archer
Hi Dan, On Mon, Jan 22, 2024 at 09:55:11AM +0300, Dan Carpenter wrote: > 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

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

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

2024-01-19 Thread Gustavo A. R. Silva
On 1/19/24 11:39, 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] staging: rtl8723bs: Use kcalloc() instead of kzalloc()

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