netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: add RTNL_ASSERT in __netdev_update_features()
@ 2011-04-12 19:56 Michał Mirosław
  2011-04-12 21:36 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Mirosław @ 2011-04-12 19:56 UTC (permalink / raw)
  To: netdev

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
 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 95897ff..ae9ac15 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5241,6 +5241,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)
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: add RTNL_ASSERT in __netdev_update_features()
  2011-04-12 19:56 [PATCH] net: add RTNL_ASSERT in __netdev_update_features() Michał Mirosław
@ 2011-04-12 21:36 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-04-12 21:36 UTC (permalink / raw)
  To: mirq-linux; +Cc: netdev

From: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Date: Tue, 12 Apr 2011 21:56:38 +0200 (CEST)

> Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-12 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 19:56 [PATCH] net: add RTNL_ASSERT in __netdev_update_features() Michał Mirosław
2011-04-12 21:36 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).