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
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
>
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