]> git.ipfire.org Git - people/ms/linux.git/commitdiff
PKT_SCHED: cls_basic: Use unsigned int when generating handle
authorKim Nordlund <kim.nordlund@nokia.com>
Sat, 14 Oct 2006 08:39:40 +0000 (10:39 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 14 Oct 2006 08:39:40 +0000 (10:39 +0200)
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>
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;