summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2006-09-27 16:25:17 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-10-13 11:50:11 -0700
commita7f0f4dc1aa3b640549507ed1ebfb46ab45eebfe (patch)
tree249a998e2dddb14fa2d47027e0eaf546079ddba8
parentc22025315f2b57bed56cfe2a63c9b291f03fe3ba (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: Greg Kroah-Hartman <gregkh@suse.de>
-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 dfb300bb6baa..0f425448fdf6 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;