Re: [PATCH] liquidio: Replace vmalloc_node + memset with vzalloc_node and use array_size

2020-06-17 Thread David Miller
From: "Gustavo A. R. Silva" 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

[PATCH] liquidio: Replace vmalloc_node + memset with vzalloc_node and use array_size

2020-06-15 Thread Gustavo A. R. Silva
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