git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'stable-3.2' into pandora-3.2
[pandora-kernel.git]
/
net
/
sched
/
sch_choke.c
diff --git
a/net/sched/sch_choke.c
b/net/sched/sch_choke.c
index
081ffb9
..
f3b1ed0
100644
(file)
--- a/
net/sched/sch_choke.c
+++ b/
net/sched/sch_choke.c
@@
-479,6
+479,9
@@
static int choke_change(struct Qdisc *sch, struct nlattr *opt)
ctl = nla_data(tb[TCA_CHOKE_PARMS]);
+ if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog))
+ return -EINVAL;
+
if (ctl->limit > CHOKE_MAX_QUEUE)
return -EINVAL;