[PKT_SCHED] cls_basic: Use unsigned int when generating handle
authorKim Nordlund <kim.nordlund@nokia.com>
Wed, 27 Sep 2006 23:19:53 +0000 (16:19 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:01:45 +0000 (18:01 -0700)
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>
net/sched/cls_basic.c

index 86cac49a0531476d716c31c9a195571063bb9117..09fda68c8b39f494f6b5802a99efc34a39cdc030 100644 (file)
@@ -194,7 +194,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;