mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
[SCSI] ibmvscsi: convert kmalloc + memset to kcalloc
Convert kmalloc + memset to kcalloc in ibmvscsi Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Dave Boutcher <sleddog@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
84d891d672
commit
4c021dd136
1 changed files with 1 additions and 2 deletions
|
@ -121,10 +121,9 @@ static int initialize_event_pool(struct event_pool *pool,
|
|||
|
||||
pool->size = size;
|
||||
pool->next = 0;
|
||||
pool->events = kmalloc(pool->size * sizeof(*pool->events), GFP_KERNEL);
|
||||
pool->events = kcalloc(pool->size, sizeof(*pool->events), GFP_KERNEL);
|
||||
if (!pool->events)
|
||||
return -ENOMEM;
|
||||
memset(pool->events, 0x00, pool->size * sizeof(*pool->events));
|
||||
|
||||
pool->iu_storage =
|
||||
dma_alloc_coherent(hostdata->dev,
|
||||
|
|
Loading…
Reference in a new issue