aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2006-04-07 06:10:03 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-04-14 16:50:04 -0400
commit4c021dd136c0ad524e6d117296beafad2bf570c0 (patch)
treea919121c43a6a47f5e9d8fdff6bf0b9c23701c90 /drivers/scsi
parent84d891d6727c17832c79ec96d3d107a87d857978 (diff)
[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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvscsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index 0a8ad37ae899..12cb743d0ce5 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -121,10 +121,9 @@ static int initialize_event_pool(struct event_pool *pool,
121 121
122 pool->size = size; 122 pool->size = size;
123 pool->next = 0; 123 pool->next = 0;
124 pool->events = kmalloc(pool->size * sizeof(*pool->events), GFP_KERNEL); 124 pool->events = kcalloc(pool->size, sizeof(*pool->events), GFP_KERNEL);
125 if (!pool->events) 125 if (!pool->events)
126 return -ENOMEM; 126 return -ENOMEM;
127 memset(pool->events, 0x00, pool->size * sizeof(*pool->events));
128 127
129 pool->iu_storage = 128 pool->iu_storage =
130 dma_alloc_coherent(hostdata->dev, 129 dma_alloc_coherent(hostdata->dev,