diff options
author | 2006-09-27 16:19:53 -0700 | |
---|---|---|
committer | 2006-09-28 18:01:45 -0700 | |
commit | 658270a0a49612a0e3fdc01c2e8c0e1a6d47cbf4 (patch) | |
tree | a0210099c1136df9c3fc7478bde9050cb310e192 /net/sched | |
parent | [PPPOE]: Advertise PPPoE MTU (diff) | |
download | linux-658270a0a49612a0e3fdc01c2e8c0e1a6d47cbf4.tar.gz linux-658270a0a49612a0e3fdc01c2e8c0e1a6d47cbf4.tar.bz2 linux-658270a0a49612a0e3fdc01c2e8c0e1a6d47cbf4.zip |
[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>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/cls_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index 86cac49a0531..09fda68c8b39 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -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; |