OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcc6d47
)
net: add RTNL_ASSERT in __netdev_update_features()
author
Michał Mirosław
<mirq-linux@rere.qmqm.pl>
Tue, 12 Apr 2011 09:56:38 +0000
(09:56 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 12 Apr 2011 21:36:07 +0000
(14:36 -0700)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
d1aebf7
..
f523eee
100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-5247,6
+5247,8
@@
int __netdev_update_features(struct net_device *dev)
u32 features;
int err = 0;
+ ASSERT_RTNL();
+
features = netdev_get_wanted_features(dev);
if (dev->netdev_ops->ndo_fix_features)