Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313903
b: refs/heads/master
c: c3001b7
h: refs/heads/master
i:
  313901: fe3c303
  313899: ce43ea3
  313895: 9955b28
  313887: 7b0a06e
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Jun 7, 2012
1 parent 21fe264 commit d8e8b52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 69927fccd96b15bd228bb82d356a7a2a0cfaeefb
refs/heads/master: c3001b773bb63afd403bae37febf3f09826912cb
4 changes: 3 additions & 1 deletion trunk/drivers/net/ethernet/micrel/ks8851_mll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ static int __devinit ks8851_probe(struct platform_device *pdev)
if (!pdata) {
netdev_err(netdev, "No platform data\n");
err = -ENODEV;
goto err_register;
goto err_pdata;
}
memcpy(ks->mac_addr, pdata->mac_addr, 6);
if (!is_valid_ether_addr(ks->mac_addr)) {
Expand All @@ -1626,6 +1626,8 @@ static int __devinit ks8851_probe(struct platform_device *pdev)
(id >> 8) & 0xff, (id >> 4) & 0xf, (id >> 1) & 0x7);
return 0;

err_pdata:
unregister_netdev(netdev);
err_register:
err_get_irq:
iounmap(ks->hw_addr_cmd);
Expand Down

0 comments on commit d8e8b52

Please sign in to comment.