aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/sx8.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/sx8.c')
-rw-r--r--drivers/block/sx8.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c
index 54509eb3391b..949ae93499e5 100644
--- a/drivers/block/sx8.c
+++ b/drivers/block/sx8.c
@@ -1608,7 +1608,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1608 } 1608 }
1609#endif 1609#endif
1610 1610
1611 host = kmalloc(sizeof(*host), GFP_KERNEL); 1611 host = kzalloc(sizeof(*host), GFP_KERNEL);
1612 if (!host) { 1612 if (!host) {
1613 printk(KERN_ERR DRV_NAME "(%s): memory alloc failure\n", 1613 printk(KERN_ERR DRV_NAME "(%s): memory alloc failure\n",
1614 pci_name(pdev)); 1614 pci_name(pdev));
@@ -1616,7 +1616,6 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1616 goto err_out_regions; 1616 goto err_out_regions;
1617 } 1617 }
1618 1618
1619 memset(host, 0, sizeof(*host));
1620 host->pdev = pdev; 1619 host->pdev = pdev;
1621 host->flags = pci_dac ? FL_DAC : 0; 1620 host->flags = pci_dac ? FL_DAC : 0;
1622 spin_lock_init(&host->lock); 1621 spin_lock_init(&host->lock);