Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193638
b: refs/heads/master
c: 283f2fe
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Mar 22, 2010
1 parent 4eb939f commit 7cf253f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 907cdda5205b012eec7513f66713749b293188c9
refs/heads/master: 283f2fe87e980d8af5ad8aa63751e7e3258ee05a
7 changes: 3 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3757,11 +3757,10 @@ int netdev_set_master(struct net_device *slave, struct net_device *master)

slave->master = master;

synchronize_net();

if (old)
if (old) {
synchronize_net();
dev_put(old);

}
if (master)
slave->flags |= IFF_SLAVE;
else
Expand Down

0 comments on commit 7cf253f

Please sign in to comment.