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-Tag: v3.0-rc1~377^2~446 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=872674858fe236b746317741013c830bb70775c2;p=uclinux-h8%2Flinux.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 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)