diff options
Diffstat (limited to 'drivers/scsi/aacraid/comminit.c')
-rw-r--r-- | drivers/scsi/aacraid/comminit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/comminit.c b/drivers/scsi/aacraid/comminit.c index 33682ce96a5d..3009ad8c4073 100644 --- a/drivers/scsi/aacraid/comminit.c +++ b/drivers/scsi/aacraid/comminit.c | |||
@@ -387,12 +387,11 @@ struct aac_dev *aac_init_adapter(struct aac_dev *dev) | |||
387 | * Ok now init the communication subsystem | 387 | * Ok now init the communication subsystem |
388 | */ | 388 | */ |
389 | 389 | ||
390 | dev->queues = kmalloc(sizeof(struct aac_queue_block), GFP_KERNEL); | 390 | dev->queues = kzalloc(sizeof(struct aac_queue_block), GFP_KERNEL); |
391 | if (dev->queues == NULL) { | 391 | if (dev->queues == NULL) { |
392 | printk(KERN_ERR "Error could not allocate comm region.\n"); | 392 | printk(KERN_ERR "Error could not allocate comm region.\n"); |
393 | return NULL; | 393 | return NULL; |
394 | } | 394 | } |
395 | memset(dev->queues, 0, sizeof(struct aac_queue_block)); | ||
396 | 395 | ||
397 | if (aac_comm_init(dev)<0){ | 396 | if (aac_comm_init(dev)<0){ |
398 | kfree(dev->queues); | 397 | kfree(dev->queues); |