diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-12 05:56:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-12 17:36:07 -0400 |
commit | 872674858fe236b746317741013c830bb70775c2 (patch) | |
tree | 39967b77f796318844a7f642f5894e311da2f746 /net/core/dev.c | |
parent | bcc6d47903612c3861201cc3a866fb604f26b8b2 (diff) |
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.c | 2 |
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) | |||
5247 | u32 features; | 5247 | u32 features; |
5248 | int err = 0; | 5248 | int err = 0; |
5249 | 5249 | ||
5250 | ASSERT_RTNL(); | ||
5251 | |||
5250 | features = netdev_get_wanted_features(dev); | 5252 | features = netdev_get_wanted_features(dev); |
5251 | 5253 | ||
5252 | if (dev->netdev_ops->ndo_fix_features) | 5254 | if (dev->netdev_ops->ndo_fix_features) |