diff options
Diffstat (limited to 'drivers/atm/he.c')
-rw-r--r-- | drivers/atm/he.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index f2511b42dba2..b22a9142b240 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -383,14 +383,12 @@ he_init_one(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) | |||
383 | } | 383 | } |
384 | pci_set_drvdata(pci_dev, atm_dev); | 384 | pci_set_drvdata(pci_dev, atm_dev); |
385 | 385 | ||
386 | he_dev = (struct he_dev *) kmalloc(sizeof(struct he_dev), | 386 | he_dev = kzalloc(sizeof(struct he_dev), |
387 | GFP_KERNEL); | 387 | GFP_KERNEL); |
388 | if (!he_dev) { | 388 | if (!he_dev) { |
389 | err = -ENOMEM; | 389 | err = -ENOMEM; |
390 | goto init_one_failure; | 390 | goto init_one_failure; |
391 | } | 391 | } |
392 | memset(he_dev, 0, sizeof(struct he_dev)); | ||
393 | |||
394 | he_dev->pci_dev = pci_dev; | 392 | he_dev->pci_dev = pci_dev; |
395 | he_dev->atm_dev = atm_dev; | 393 | he_dev->atm_dev = atm_dev; |
396 | he_dev->atm_dev->dev_data = he_dev; | 394 | he_dev->atm_dev->dev_data = he_dev; |