diff options
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 7352e455053c..fcb05a387dbe 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
@@ -157,7 +157,8 @@ psched_tod_diff(int delta_sec, int bound) | |||
157 | case 1: \ | 157 | case 1: \ |
158 | __delta += 1000000; \ | 158 | __delta += 1000000; \ |
159 | case 0: \ | 159 | case 0: \ |
160 | __delta = abs(__delta); \ | 160 | if (__delta > bound || __delta < 0) \ |
161 | __delta = bound; \ | ||
161 | } \ | 162 | } \ |
162 | __delta; \ | 163 | __delta; \ |
163 | }) | 164 | }) |