[PATCH] net: add rtnl assertion to linkwatch_run_queue
From: Denis Kirjanov <hidden>
Date: 2010-05-27 05:51:12
Add RTNL assertion to linkwatch_run_queue since function must be called with semaphore held Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> --- net/core/link_watch.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/core/link_watch.c b/net/core/link_watch.c
index bdbce2f..e6d06c0 100644
--- a/net/core/link_watch.c
+++ b/net/core/link_watch.c@@ -220,6 +220,7 @@ void linkwatch_forget_dev(struct net_device *dev) /* Must be called with the rtnl semaphore held */ void linkwatch_run_queue(void) { + ASSERT_RTNL(); __linkwatch_run_queue(0); }