Commit 1ecb7315 authored by Kim Nordlund's avatar Kim Nordlund Committed by Adrian Bunk

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: default avatarKim Nordlund <kim.nordlund@nokia.com>
Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 1b85ee3e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment