Re: [PATCH v3] staging: rtl8192u: ieee80211: replace kmalloc/memset with kzalloc

2020-10-26 Thread Dan Carpenter
On Sun, Oct 25, 2020 at 10:54:31AM -0700, Elena Afanasova wrote: > Replace kmalloc + memset 0 by a call to kzalloc which zeroes memory too. > Found with Coccinelle. > > Signed-off-by: Elena Afanasova > --- > Changes in v3: > - use array_size() struct_size() is more correct than

Re: [Outreachy kernel] [PATCH v3] staging: rtl8192u: ieee80211: replace kmalloc/memset with kzalloc

2020-10-25 Thread Julia Lawall
On Sun, 25 Oct 2020, Elena Afanasova wrote: > Replace kmalloc + memset 0 by a call to kzalloc which zeroes memory too. > Found with Coccinelle. > > Signed-off-by: Elena Afanasova > --- > Changes in v3: > - use array_size() > Changes in v2: > - correct the subject line >

[PATCH v3] staging: rtl8192u: ieee80211: replace kmalloc/memset with kzalloc

2020-10-25 Thread Elena Afanasova
Replace kmalloc + memset 0 by a call to kzalloc which zeroes memory too. Found with Coccinelle. Signed-off-by: Elena Afanasova --- Changes in v3: - use array_size() Changes in v2: - correct the subject line - correct the commit message