PKT_SCHED: cls_basic: Use unsigned int when generating handle
authorDavid Miller <davem@davemloft.net>
Wed, 27 Sep 2006 23:25:17 +0000 (16:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 18:50:11 +0000 (11:50 -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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/cls_basic.c

index dfb300bb6baa067963a5e0e1e160087ae69d291d..0f425448fdf6ed581f62736bd08f268bea925155 100644 (file)
@@ -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;