Re: [PATCH][next] scsi: fnic: Replace vmalloc() + memset() with vzalloc() and use array_size()

2020-06-15 Thread Joe Perches
On Tue, 2020-06-16 at 00:19 +, Satish Kharat (satishkh) wrote: > Reviewed-by: Satish Kharat >  > > On 6/15/20, 3:49 PM, "Gustavo A. R. Silva" wrote: > > Use vzalloc() instead of the vmalloc() and memset. Also, use array_size() > instead of the open-coded version. > > This

Re: [PATCH][next] scsi: fnic: Replace vmalloc() + memset() with vzalloc() and use array_size()

2020-06-15 Thread Satish Kharat (satishkh)
Reviewed-by: Satish Kharat  On 6/15/20, 3:49 PM, "Gustavo A. R. Silva" wrote: Use vzalloc() instead of the vmalloc() and memset. Also, use array_size() instead of the open-coded version. This issue was found with the help of Coccinelle and, audited and fixed manually.

[PATCH][next] scsi: fnic: Replace vmalloc() + memset() with vzalloc() and use array_size()

2020-06-15 Thread Gustavo A. R. Silva
Use vzalloc() instead of the vmalloc() and memset. Also, use array_size() instead of the open-coded version. 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 --- driver