Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263242
b: refs/heads/master
c: 11f3a6b
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 22, 2011
1 parent aa0875a commit 8680837
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 832d80aceaab995c347d62abf7c241fc3e2eb0ce
refs/heads/master: 11f3a6bdc2528d1ce2af50202dbf7138fdee1b34
6 changes: 5 additions & 1 deletion trunk/net/bridge/br_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ static struct net_bridge_port *new_nbp(struct net_bridge *br,
int br_add_bridge(struct net *net, const char *name)
{
struct net_device *dev;
int res;

dev = alloc_netdev(sizeof(struct net_bridge), name,
br_dev_setup);
Expand All @@ -240,7 +241,10 @@ int br_add_bridge(struct net *net, const char *name)

dev_net_set(dev, net);

return register_netdev(dev);
res = register_netdev(dev);
if (res)
free_netdev(dev);
return res;
}

int br_del_bridge(struct net *net, const char *name)
Expand Down

0 comments on commit 8680837

Please sign in to comment.