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
netlink: ensure to loop over all netns in genlmsg_multicast_allns()
[pandora-kernel.git]
/
net
/
sched
/
sch_red.c
diff --git
a/net/sched/sch_red.c
b/net/sched/sch_red.c
index
d617161
..
bbf2dfd
100644
(file)
--- a/
net/sched/sch_red.c
+++ b/
net/sched/sch_red.c
@@
-189,6
+189,8
@@
static int red_change(struct Qdisc *sch, struct nlattr *opt)
return -EINVAL;
ctl = nla_data(tb[TCA_RED_PARMS]);
return -EINVAL;
ctl = nla_data(tb[TCA_RED_PARMS]);
+ if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog))
+ return -EINVAL;
if (ctl->limit > 0) {
child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit);
if (ctl->limit > 0) {
child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit);