diff options
-rw-r--r-- | net/sched/sch_generic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index cbefe225581e..f4d34480a093 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -224,7 +224,8 @@ void __netdev_watchdog_up(struct net_device *dev) | |||
224 | if (dev->tx_timeout) { | 224 | if (dev->tx_timeout) { |
225 | if (dev->watchdog_timeo <= 0) | 225 | if (dev->watchdog_timeo <= 0) |
226 | dev->watchdog_timeo = 5*HZ; | 226 | dev->watchdog_timeo = 5*HZ; |
227 | if (!mod_timer(&dev->watchdog_timer, jiffies + dev->watchdog_timeo)) | 227 | if (!mod_timer(&dev->watchdog_timer, |
228 | round_jiffies(jiffies + dev->watchdog_timeo))) | ||
228 | dev_hold(dev); | 229 | dev_hold(dev); |
229 | } | 230 | } |
230 | } | 231 | } |