Re: [PATCH] scsi: Use vzalloc instead of vmalloc/memset

2017-11-07 Thread Julia Lawall
On Wed, 8 Nov 2017, Himanshu Jha wrote: > On Tue, Nov 07, 2017 at 08:51:36PM +0100, Luis R. Rodriguez wrote: > > On Sun, Nov 05, 2017 at 03:26:26AM +0530, Himanshu Jha wrote: > > > Use vzalloc instead of vmalloc/memset to allocate memory filled with 0 > > > value. > > > > > > Done using Coccinel

Re: [PATCH] scsi: Use vzalloc instead of vmalloc/memset

2017-11-07 Thread Himanshu Jha
On Tue, Nov 07, 2017 at 08:51:36PM +0100, Luis R. Rodriguez wrote: > On Sun, Nov 05, 2017 at 03:26:26AM +0530, Himanshu Jha wrote: > > Use vzalloc instead of vmalloc/memset to allocate memory filled with 0 > > value. > > > > Done using Coccinelle. > > Semantic patch used : > > > > @@ > > expressi

Re: [PATCH] scsi: Use vzalloc instead of vmalloc/memset

2017-11-07 Thread Luis R. Rodriguez
On Sun, Nov 05, 2017 at 03:26:26AM +0530, Himanshu Jha wrote: > Use vzalloc instead of vmalloc/memset to allocate memory filled with 0 > value. > > Done using Coccinelle. > Semantic patch used : > > @@ > expression x,a; > statement S; > @@ > > - x = vmalloc(a); > + x = vzalloc(a); > if (x == N

[PATCH] scsi: Use vzalloc instead of vmalloc/memset

2017-11-04 Thread Himanshu Jha
Use vzalloc instead of vmalloc/memset to allocate memory filled with 0 value. Done using Coccinelle. Semantic patch used : @@ expression x,a; statement S; @@ - x = vmalloc(a); + x = vzalloc(a); if (x == NULL || ...) S - memset(x, 0, a); Signed-off-by: Himanshu Jha --- drivers/scsi/bfa/bfad.