Skip to content

Commit

Permalink
[PKT_SCHED] cls_basic: Use unsigned int when generating handle
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim Nordlund authored and David S. Miller committed Sep 29, 2006
1 parent c9aa689 commit 658270a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/cls_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 658270a

Please sign in to comment.