diff options
Diffstat (limited to 'drivers/atm/horizon.c')
-rw-r--r-- | drivers/atm/horizon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c index d1113e845f95..209dba1c70da 100644 --- a/drivers/atm/horizon.c +++ b/drivers/atm/horizon.c | |||
@@ -2719,7 +2719,7 @@ static int __devinit hrz_probe(struct pci_dev *pci_dev, const struct pci_device_ | |||
2719 | goto out_disable; | 2719 | goto out_disable; |
2720 | } | 2720 | } |
2721 | 2721 | ||
2722 | dev = kmalloc(sizeof(hrz_dev), GFP_KERNEL); | 2722 | dev = kzalloc(sizeof(hrz_dev), GFP_KERNEL); |
2723 | if (!dev) { | 2723 | if (!dev) { |
2724 | // perhaps we should be nice: deregister all adapters and abort? | 2724 | // perhaps we should be nice: deregister all adapters and abort? |
2725 | PRINTD(DBG_ERR, "out of memory"); | 2725 | PRINTD(DBG_ERR, "out of memory"); |
@@ -2727,8 +2727,6 @@ static int __devinit hrz_probe(struct pci_dev *pci_dev, const struct pci_device_ | |||
2727 | goto out_release; | 2727 | goto out_release; |
2728 | } | 2728 | } |
2729 | 2729 | ||
2730 | memset(dev, 0, sizeof(hrz_dev)); | ||
2731 | |||
2732 | pci_set_drvdata(pci_dev, dev); | 2730 | pci_set_drvdata(pci_dev, dev); |
2733 | 2731 | ||
2734 | // grab IRQ and install handler - move this someplace more sensible | 2732 | // grab IRQ and install handler - move this someplace more sensible |