projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9aa689
)
[PKT_SCHED] cls_basic: Use unsigned int when generating handle
author
Kim Nordlund
<kim.nordlund@nokia.com>
Wed, 27 Sep 2006 23:19:53 +0000
(16:19 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:01:45 +0000
(18:01 -0700)
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>
net/sched/cls_basic.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/cls_basic.c
b/net/sched/cls_basic.c
index 86cac49a0531476d716c31c9a195571063bb9117..09fda68c8b39f494f6b5802a99efc34a39cdc030 100644
(file)
--- 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;