aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/core/link_watch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/link_watch.c b/net/core/link_watch.c
index b5f45799c2f3..4674ae574128 100644
--- a/net/core/link_watch.c
+++ b/net/core/link_watch.c
@@ -101,8 +101,10 @@ static void linkwatch_schedule_work(unsigned long delay)
101 return; 101 return;
102 102
103 /* If we wrap around we'll delay it by at most HZ. */ 103 /* If we wrap around we'll delay it by at most HZ. */
104 if (delay > HZ) 104 if (delay > HZ) {
105 linkwatch_nextevent = jiffies;
105 delay = 0; 106 delay = 0;
107 }
106 108
107 schedule_delayed_work(&linkwatch_work, delay); 109 schedule_delayed_work(&linkwatch_work, delay);
108} 110}