Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255966
b: refs/heads/master
c: ec0d755
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and David S. Miller committed Jun 28, 2011
1 parent 6a323c8 commit a14569c
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 72e85c45b9541e1f3d233e775da1dc6f68b85867
refs/heads/master: ec0d75518cb06261f1823fa2713fe52b9b26455e
4 changes: 2 additions & 2 deletions trunk/drivers/net/sh_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
int ret, devno = 0;
struct resource *res;
struct net_device *ndev = NULL;
struct sh_eth_private *mdp;
struct sh_eth_private *mdp = NULL;
struct sh_eth_plat_data *pd;

/* get base addr */
Expand Down Expand Up @@ -1888,7 +1888,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)

out_release:
/* net_dev free */
if (mdp->tsu_addr)
if (mdp && mdp->tsu_addr)
iounmap(mdp->tsu_addr);
if (ndev)
free_netdev(ndev);
Expand Down

0 comments on commit a14569c

Please sign in to comment.