aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ips.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r--drivers/scsi/ips.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index 9f8ed6b81576..492a51bd6aa8 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -7068,14 +7068,13 @@ ips_init_phase1(struct pci_dev *pci_dev, int *indexPtr)
7068 subdevice_id = pci_dev->subsystem_device; 7068 subdevice_id = pci_dev->subsystem_device;
7069 7069
7070 /* found a controller */ 7070 /* found a controller */
7071 ha = kmalloc(sizeof (ips_ha_t), GFP_KERNEL); 7071 ha = kzalloc(sizeof (ips_ha_t), GFP_KERNEL);
7072 if (ha == NULL) { 7072 if (ha == NULL) {
7073 IPS_PRINTK(KERN_WARNING, pci_dev, 7073 IPS_PRINTK(KERN_WARNING, pci_dev,
7074 "Unable to allocate temporary ha struct\n"); 7074 "Unable to allocate temporary ha struct\n");
7075 return -1; 7075 return -1;
7076 } 7076 }
7077 7077
7078 memset(ha, 0, sizeof (ips_ha_t));
7079 7078
7080 ips_sh[index] = NULL; 7079 ips_sh[index] = NULL;
7081 ips_ha[index] = ha; 7080 ips_ha[index] = ha;