Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131959
b: refs/heads/master
c: 1844f74
h: refs/heads/master
i:
  131957: cdeb22d
  131955: 9935f7d
  131951: 515e7ab
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Feb 27, 2009
1 parent f2eddb4 commit e19e6f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e92aa634a33739478958f4109d6bd35b36d13532
refs/heads/master: 1844f747947bb89d7f12cd3034548805113f764b
6 changes: 5 additions & 1 deletion trunk/net/sched/sch_drr.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ static int drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
{
struct drr_sched *q = qdisc_priv(sch);
struct drr_class *cl = (struct drr_class *)*arg;
struct nlattr *opt = tca[TCA_OPTIONS];
struct nlattr *tb[TCA_DRR_MAX + 1];
u32 quantum;
int err;

err = nla_parse_nested(tb, TCA_DRR_MAX, tca[TCA_OPTIONS], drr_policy);
if (!opt)
return -EINVAL;

err = nla_parse_nested(tb, TCA_DRR_MAX, opt, drr_policy);
if (err < 0)
return err;

Expand Down

0 comments on commit e19e6f9

Please sign in to comment.