aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorKim Nordlund <kim.nordlund@nokia.com>2006-09-27 19:19:53 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:01:45 -0400
commit658270a0a49612a0e3fdc01c2e8c0e1a6d47cbf4 (patch)
treea0210099c1136df9c3fc7478bde9050cb310e192 /net/sched
parentc9aa6895371b2a257401f59d3393c9f7ac5a8698 (diff)
[PKT_SCHED] cls_basic: Use unsigned int when generating handle
Prevents filters from being added if the first generated handle already exists. Signed-off-by: Kim Nordlund <kim.nordlund@nokia.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/cls_basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c
index 86cac49a0531..09fda68c8b39 100644
--- a/net/sched/cls_basic.c
+++ b/net/sched/cls_basic.c
@@ -194,7 +194,7 @@ static int basic_change(struct tcf_proto *tp, unsigned long base, u32 handle,
194 if (handle) 194 if (handle)
195 f->handle = handle; 195 f->handle = handle;
196 else { 196 else {
197 int i = 0x80000000; 197 unsigned int i = 0x80000000;
198 do { 198 do {
199 if (++head->hgenerator == 0x7FFFFFFF) 199 if (++head->hgenerator == 0x7FFFFFFF)
200 head->hgenerator = 1; 200 head->hgenerator = 1;