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: 2.1b_release~4192^2~446 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=872674858fe236b746317741013c830bb70775c2;p=platform%2Fkernel%2Fkernel-mfld-blackbay.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 d1aebf7..f523eee 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)