summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2011-04-12 09:56:38 +0000
committerDavid S. Miller <davem@davemloft.net>2011-04-12 14:36:07 -0700
commit872674858fe236b746317741013c830bb70775c2 (patch)
tree39967b77f796318844a7f642f5894e311da2f746 /net/core/dev.c
parentbcc6d47903612c3861201cc3a866fb604f26b8b2 (diff)
downloadlwn-872674858fe236b746317741013c830bb70775c2.tar.gz
lwn-872674858fe236b746317741013c830bb70775c2.zip
net: add RTNL_ASSERT in __netdev_update_features()
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index d1aebf7c6494..f523eee3141c 100644
--- 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)