mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[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>
This commit is contained in:
parent
c9aa689537
commit
658270a0a4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue