mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[PKT_SCHED]: Fix range in PSCHED_TDIFF_SAFE to 0..bound
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
033d899904
commit
9dfa277f88
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ psched_tod_diff(int delta_sec, int bound)
|
|||
case 1: \
|
||||
__delta += 1000000; \
|
||||
case 0: \
|
||||
__delta = abs(__delta); \
|
||||
if (__delta > bound || __delta < 0) \
|
||||
__delta = bound; \
|
||||
} \
|
||||
__delta; \
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue