Re: [PATCH] liquidio: Replace vmalloc_node + memset with vzalloc_node and use array_size
From: David Miller
Date: Wed Jun 17 2020 - 18:04:40 EST
From: "Gustavo A. R. Silva" <gustavoars@xxxxxxxxxx>
Date: Mon, 15 Jun 2020 16:18:55 -0500
> Use vzalloc/vzalloc_node instead of the vmalloc/vzalloc_node and memset.
>
> Also, notice that vzalloc_node() function has no 2-factor argument form
> to calculate the size for the allocation, so multiplication factors need
> to be wrapped in array_size().
>
> This issue was found with the help of Coccinelle and, audited and fixed
> manually.
>
> Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
> Signed-off-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>
Applied to net-next, thanks.