aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorKim Nordlund <kim.nordlund@nokia.com>2006-10-14 10:39:40 +0200
committerAdrian Bunk <bunk@stusta.de>2006-10-14 10:39:40 +0200
commit1ecb731506c27cb63f54979fac57895b12164615 (patch)
tree4e66a0c3e7bfdddabe22b5a5d714e45848cfb523 /net
parent1b85ee3ead96f0ad706cd794e2fa60a42b278713 (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> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'net')
-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 dfb300bb6ba..0f425448fdf 100644
--- a/net/sched/cls_basic.c
+++ b/net/sched/cls_basic.c
@@ -197,7 +197,7 @@ static int basic_change(struct tcf_proto *tp, unsigned long base, u32 handle,
if (handle)
f->handle = handle;
else {
- int i = 0x80000000;
+ unsigned int i = 0x80000000;
do {
if (++head->hgenerator == 0x7FFFFFFF)
head->hgenerator = 1;