diff options
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 537836068c49..80ec89c505d2 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -1232,12 +1232,11 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1232 | dprintk((KERN_INFO MYNAM | 1232 | dprintk((KERN_INFO MYNAM |
1233 | ": Not using 64 bit consistent mask\n")); | 1233 | ": Not using 64 bit consistent mask\n")); |
1234 | 1234 | ||
1235 | ioc = kmalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC); | 1235 | ioc = kzalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC); |
1236 | if (ioc == NULL) { | 1236 | if (ioc == NULL) { |
1237 | printk(KERN_ERR MYNAM ": ERROR - Insufficient memory to add adapter!\n"); | 1237 | printk(KERN_ERR MYNAM ": ERROR - Insufficient memory to add adapter!\n"); |
1238 | return -ENOMEM; | 1238 | return -ENOMEM; |
1239 | } | 1239 | } |
1240 | memset(ioc, 0, sizeof(MPT_ADAPTER)); | ||
1241 | ioc->alloc_total = sizeof(MPT_ADAPTER); | 1240 | ioc->alloc_total = sizeof(MPT_ADAPTER); |
1242 | ioc->req_sz = MPT_DEFAULT_FRAME_SIZE; /* avoid div by zero! */ | 1241 | ioc->req_sz = MPT_DEFAULT_FRAME_SIZE; /* avoid div by zero! */ |
1243 | ioc->reply_sz = MPT_REPLY_FRAME_SIZE; | 1242 | ioc->reply_sz = MPT_REPLY_FRAME_SIZE; |