Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23661
b: refs/heads/master
c: 9f51495
h: refs/heads/master
i:
  23659: 9fc4694
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Mar 25, 2006
1 parent 03e1e8c commit 4d3fb1b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 868d2c1efe9cdd259b67a80d60a7fb2fcecd3d68
refs/heads/master: 9f514950bb907e98f280492a091aa1889b97304e
7 changes: 6 additions & 1 deletion trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,12 @@ int register_netdevice_notifier(struct notifier_block *nb)

int unregister_netdevice_notifier(struct notifier_block *nb)
{
return notifier_chain_unregister(&netdev_chain, nb);
int err;

rtnl_lock();
err = notifier_chain_unregister(&netdev_chain, nb);
rtnl_unlock();
return err;
}

/**
Expand Down

0 comments on commit 4d3fb1b

Please sign in to comment.