Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83633
b: refs/heads/master
c: 4f25049
h: refs/heads/master
i:
  83631: 4b948ec
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 6, 2008
1 parent 097b331 commit c0b822b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 0ea9d70df8f8be741ee0525490370de06163d2de
refs/heads/master: 4f25049106e0507ff21a9e1fc0645d849e19faf0
5 changes: 3 additions & 2 deletions trunk/net/sched/cls_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,13 @@ static int flow_change(struct tcf_proto *tp, unsigned long base,

if (tb[TCA_FLOW_KEYS]) {
keymask = nla_get_u32(tb[TCA_FLOW_KEYS]);
if (fls(keymask) - 1 > FLOW_KEY_MAX)
return -EOPNOTSUPP;

nkeys = hweight32(keymask);
if (nkeys == 0)
return -EINVAL;

if (fls(keymask) - 1 > FLOW_KEY_MAX)
return -EOPNOTSUPP;
}

err = tcf_exts_validate(tp, tb, tca[TCA_RATE], &e, &flow_ext_map);
Expand Down

0 comments on commit c0b822b

Please sign in to comment.