Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18835
b: refs/heads/master
c: 6aad85d
h: refs/heads/master
i:
  18833: d8ae494
  18831: 48ff076
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Jan 18, 2006
1 parent 1e67a81 commit 41c6341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3be92a70237a1bd813e46d6683a55b508627013a
refs/heads/master: 6aad85d6730d47d4867f24eeda517766aa89f8d0
3 changes: 1 addition & 2 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3099,14 +3099,13 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
#endif

err = -ENOMEM;
hw = kmalloc(sizeof(*hw), GFP_KERNEL);
hw = kzalloc(sizeof(*hw), GFP_KERNEL);
if (!hw) {
printk(KERN_ERR PFX "%s: cannot allocate hardware struct\n",
pci_name(pdev));
goto err_out_free_regions;
}

memset(hw, 0, sizeof(*hw));
hw->pdev = pdev;

hw->regs = ioremap_nocache(pci_resource_start(pdev, 0), 0x4000);
Expand Down

0 comments on commit 41c6341

Please sign in to comment.