diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-12 09:56:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-12 14:36:07 -0700 |
commit | 872674858fe236b746317741013c830bb70775c2 (patch) | |
tree | 39967b77f796318844a7f642f5894e311da2f746 /net | |
parent | bcc6d47903612c3861201cc3a866fb604f26b8b2 (diff) | |
download | linux-872674858fe236b746317741013c830bb70775c2.tar.gz linux-872674858fe236b746317741013c830bb70775c2.tar.bz2 linux-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')
-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) u32 features; int err = 0; + ASSERT_RTNL(); + features = netdev_get_wanted_features(dev); if (dev->netdev_ops->ndo_fix_features) |