aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/skge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index fe806dbc1914..f411c5c80410 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -3168,14 +3168,13 @@ static int __devinit skge_probe(struct pci_dev *pdev,
3168#endif 3168#endif
3169 3169
3170 err = -ENOMEM; 3170 err = -ENOMEM;
3171 hw = kmalloc(sizeof(*hw), GFP_KERNEL); 3171 hw = kzalloc(sizeof(*hw), GFP_KERNEL);
3172 if (!hw) { 3172 if (!hw) {
3173 printk(KERN_ERR PFX "%s: cannot allocate hardware struct\n", 3173 printk(KERN_ERR PFX "%s: cannot allocate hardware struct\n",
3174 pci_name(pdev)); 3174 pci_name(pdev));
3175 goto err_out_free_regions; 3175 goto err_out_free_regions;
3176 } 3176 }
3177 3177
3178 memset(hw, 0, sizeof(*hw));
3179 hw->pdev = pdev; 3178 hw->pdev = pdev;
3180 spin_lock_init(&hw->phy_lock); 3179 spin_lock_init(&hw->phy_lock);
3181 tasklet_init(&hw->ext_tasklet, skge_extirq, (unsigned long) hw); 3180 tasklet_init(&hw->ext_tasklet, skge_extirq, (unsigned long) hw);