Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 542
b: refs/heads/master
c: 7b3c63a
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Dichtel authored and David S. Miller committed Apr 28, 2005
1 parent 4648e6e commit 8bfc7e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89c8b3a11086a2a43ac4240116da77b707f37fbf
refs/heads/master: 7b3c63ac7cb5e2e6680727045aa35c2e5f1bace7
5 changes: 3 additions & 2 deletions trunk/include/net/pkt_sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ psched_tod_diff(int delta_sec, int bound)
if (bound <= 1000000 || delta_sec > (0x7FFFFFFF/1000000)-1)
return bound;
delta = delta_sec * 1000000;
if (delta > bound)
if (delta > bound || delta < 0)
delta = bound;
return delta;
}
Expand All @@ -156,7 +156,8 @@ psched_tod_diff(int delta_sec, int bound)
__delta += 1000000; \
case 1: \
__delta += 1000000; \
case 0: ; \
case 0: \
__delta = abs(__delta); \
} \
__delta; \
})
Expand Down

0 comments on commit 8bfc7e5

Please sign in to comment.