From: Michał Mirosław Date: Tue, 12 Apr 2011 09:56:38 +0000 (+0000) Subject: net: add RTNL_ASSERT in __netdev_update_features() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=872674858fe236b746317741013c830bb70775c2;p=mv-sheeva.git net: add RTNL_ASSERT in __netdev_update_features() Signed-off-by: Michał Mirosław Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index d1aebf7c649..f523eee3141 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)